|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.services.impl.ExpressionEvaluatorImpl
public class ExpressionEvaluatorImpl
Constructor Summary | |
---|---|
ExpressionEvaluatorImpl()
|
Method Summary | |
---|---|
OgnlContext |
createContext(Object target)
Creates a default OGNL context object that can be used against the specified object for expression evaluation. |
void |
initializeService()
|
boolean |
isConstant(Object target,
String expression)
Returns true if the expression evaluates to a constant or other literal value. |
boolean |
isConstant(String expression)
Returns true if the expression evaluates to a constant or other literal value. |
Object |
read(Object target,
ognl.enhance.ExpressionAccessor expression)
Reads a property of the target, defined by the (previously compiled) expression. |
Object |
read(Object target,
String expression)
Reads a property of the target, defined by the expression. |
Object |
readCompiled(Object target,
Object expression)
Reads a property of the target, defined by the (previously compiled) expression. |
void |
registryDidShutdown()
|
void |
setApplicationSpecification(IApplicationSpecification applicationSpecification)
|
void |
setClassFactory(org.apache.hivemind.service.ClassFactory classFactory)
|
void |
setContributions(List contributions)
|
void |
setExpressionCache(ExpressionCache expressionCache)
|
void |
setNullHandlerContributions(List nullHandlerContributions)
|
void |
write(Object target,
ognl.enhance.ExpressionAccessor expression,
Object value)
Updates a property of the target, defined by the (previously compiled) expression. |
void |
write(Object target,
String expression,
Object value)
Updates a property of the target, defined by the expression. |
void |
writeCompiled(Object target,
Object expression,
Object value)
Updates a property of the target, defined by the (previously compiled) expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExpressionEvaluatorImpl()
Method Detail |
---|
public void setApplicationSpecification(IApplicationSpecification applicationSpecification)
public void initializeService()
public Object read(Object target, String expression)
ExpressionEvaluator
read
in interface ExpressionEvaluator
public Object readCompiled(Object target, Object expression)
ExpressionEvaluator
readCompiled
in interface ExpressionEvaluator
public Object read(Object target, ognl.enhance.ExpressionAccessor expression)
ExpressionEvaluator
read
in interface ExpressionEvaluator
target
- The object to resolve the expression against.expression
- The compiled expression.
public OgnlContext createContext(Object target)
ExpressionEvaluator
createContext
in interface ExpressionEvaluator
target
- The object to get a context for.
public void write(Object target, String expression, Object value)
ExpressionEvaluator
write
in interface ExpressionEvaluator
public void write(Object target, ognl.enhance.ExpressionAccessor expression, Object value)
ExpressionEvaluator
write
in interface ExpressionEvaluator
target
- The target object to set a value on.expression
- The pre-compiled expression.value
- The value to set.public void writeCompiled(Object target, Object expression, Object value)
ExpressionEvaluator
writeCompiled
in interface ExpressionEvaluator
public boolean isConstant(Object target, String expression)
ExpressionEvaluator
isConstant
in interface ExpressionEvaluator
public boolean isConstant(String expression)
ExpressionEvaluator
isConstant
in interface ExpressionEvaluator
public void registryDidShutdown()
registryDidShutdown
in interface org.apache.hivemind.events.RegistryShutdownListener
public void setExpressionCache(ExpressionCache expressionCache)
public void setContributions(List contributions)
public void setNullHandlerContributions(List nullHandlerContributions)
public void setClassFactory(org.apache.hivemind.service.ClassFactory classFactory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |