|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tiles.evaluator.BasicAttributeEvaluatorFactory
public class BasicAttributeEvaluatorFactory
Basic implementation of AttributeEvaluatorFactory
. It supports a
default attribute evaluator, in case the language is not recognized.
Constructor Summary | |
---|---|
BasicAttributeEvaluatorFactory(AttributeEvaluator defaultEvaluator)
Constructor. |
Method Summary | |
---|---|
AttributeEvaluator |
getAttributeEvaluator(Attribute attribute)
Creates and attribute evaluator using an attribute. |
AttributeEvaluator |
getAttributeEvaluator(String language)
Creates and attribute evaluator for the given expression language. |
void |
registerAttributeEvaluator(String language,
AttributeEvaluator evaluator)
Registers a known expression language with its attribute evaluator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicAttributeEvaluatorFactory(AttributeEvaluator defaultEvaluator)
defaultEvaluator
- The default evaluator to return if it is not
found in the map of known languages.Method Detail |
---|
public void registerAttributeEvaluator(String language, AttributeEvaluator evaluator)
language
- The name of the expression language.evaluator
- The associated attribute evaluator.public AttributeEvaluator getAttributeEvaluator(String language)
getAttributeEvaluator
in interface AttributeEvaluatorFactory
language
- The name of the expression language.
null
.public AttributeEvaluator getAttributeEvaluator(Attribute attribute)
getAttributeEvaluator
in interface AttributeEvaluatorFactory
attribute
- The attribute used to obtain the evaluator.
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |