org.pm4j.core.pm.impl
Class PmExpressionApiHandler

java.lang.Object
  extended by org.pm4j.core.pm.impl.PmExpressionApiHandler

public class PmExpressionApiHandler
extends java.lang.Object


Constructor Summary
PmExpressionApiHandler()
           
 
Method Summary
protected static java.lang.Object _findNamedObjectImpl(PmObject pm, java.lang.String objName)
          Finds an object within the named object scopes of the application.
 java.lang.Object findByExpression(PmObject pm, java.lang.String name)
          Finds a named property from the following scopes (if available): navigation scope conversation scope @link PmConversation property http-request and session properties application configuration property (e.g.
 java.lang.Object findNamedObject(PmObject pm, java.lang.String objName)
          Finds the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PmExpressionApiHandler

public PmExpressionApiHandler()
Method Detail

findByExpression

public java.lang.Object findByExpression(PmObject pm,
                                         java.lang.String name)
Finds a named property from the following scopes (if available):
  1. navigation scope
  2. conversation scope
  3. @link PmConversation property
  4. http-request and session properties
  5. application configuration property (e.g. Spring)

Parameters:
name - Name of the property to find.
Returns:
The found property value or null when not found.

findNamedObject

public java.lang.Object findNamedObject(PmObject pm,
                                        java.lang.String objName)
Finds the object. Tries to resolve not found objects using #handleNamedPmObjectNotFound(String).


_findNamedObjectImpl

protected static java.lang.Object _findNamedObjectImpl(PmObject pm,
                                                       java.lang.String objName)
Finds an object within the named object scopes of the application.

Parameters:
objName - Name of the object to find.
Returns:
The found instance of null.