|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.evaluator.AbstractAttributeEvaluator
org.apache.tiles.el.ELAttributeEvaluator
public class ELAttributeEvaluator
Evaluates string expression with typical EL syntax.
You can use normal EL syntax, knowing that the root objects are
TilesRequestContext
, TilesApplicationContext
and beans
contained in request, session and application scope.
Field Summary | |
---|---|
protected TilesApplicationContext |
applicationContext
The Tiles application context. |
static java.lang.String |
EXPRESSION_FACTORY_FACTORY_INIT_PARAM
Initialization parameter to decide the implementation of ExpressionFactoryFactory . |
protected ExpressionFactory |
expressionFactory
The EL expression factory. |
protected ELResolver |
resolver
The EL resolver to use. |
Constructor Summary | |
---|---|
ELAttributeEvaluator()
Constructor. |
Method Summary | |
---|---|
java.lang.Object |
evaluate(java.lang.String expression,
TilesRequestContext request)
Evaluates an expression. |
void |
init(java.util.Map<java.lang.String,java.lang.String> initParameters)
Initializes the attribute evaluator. |
void |
setApplicationContext(TilesApplicationContext applicationContext)
Sets the Tiles application context. |
void |
setExpressionFactory(ExpressionFactory expressionFactory)
Sets the expression factory to use. |
void |
setResolver(ELResolver resolver)
Sets the EL resolver to use. |
Methods inherited from class org.apache.tiles.evaluator.AbstractAttributeEvaluator |
---|
evaluate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String EXPRESSION_FACTORY_FACTORY_INIT_PARAM
ExpressionFactoryFactory
.
protected TilesApplicationContext applicationContext
protected ExpressionFactory expressionFactory
protected ELResolver resolver
Constructor Detail |
---|
public ELAttributeEvaluator()
Method Detail |
---|
public void init(java.util.Map<java.lang.String,java.lang.String> initParameters)
init
in interface AttributeEvaluator
initParameters
- The initialization parameters.public void setApplicationContext(TilesApplicationContext applicationContext)
setApplicationContext
in interface TilesApplicationContextAware
applicationContext
- The Tiles application context.public void setExpressionFactory(ExpressionFactory expressionFactory)
expressionFactory
- The expression factory.public void setResolver(ELResolver resolver)
resolver
- The EL resolver.public java.lang.Object evaluate(java.lang.String expression, TilesRequestContext request)
evaluate
in interface AttributeEvaluator
expression
- The expression to evaluate.request
- The request object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |