Package org.thymeleaf
Class DialectSetConfiguration.AggregateExpressionObjectFactory
- java.lang.Object
-
- org.thymeleaf.DialectSetConfiguration.AggregateExpressionObjectFactory
-
- All Implemented Interfaces:
IExpressionObjectFactory
- Enclosing class:
- DialectSetConfiguration
static class DialectSetConfiguration.AggregateExpressionObjectFactory extends java.lang.Object implements IExpressionObjectFactory
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<IExpressionObjectFactory>expressionObjectFactoryListprivate IExpressionObjectFactoryfirstExpressionObjectFactory
-
Constructor Summary
Constructors Constructor Description AggregateExpressionObjectFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidadd(IExpressionObjectFactory expressionObjectFactory)java.lang.ObjectbuildObject(IExpressionContext context, java.lang.String expressionObjectName)Build the requested object.java.util.Set<java.lang.String>getAllExpressionObjectNames()Return the complete list of expression objects that can be created by this factory.booleanisCacheable(java.lang.String expressionObjectName)Returns whether a specific expression object can be cached and reused for all expressions in the same template execution or not.
-
-
-
Field Detail
-
firstExpressionObjectFactory
private IExpressionObjectFactory firstExpressionObjectFactory
-
expressionObjectFactoryList
private java.util.List<IExpressionObjectFactory> expressionObjectFactoryList
-
-
Method Detail
-
add
void add(IExpressionObjectFactory expressionObjectFactory)
-
getAllExpressionObjectNames
public java.util.Set<java.lang.String> getAllExpressionObjectNames()
Description copied from interface:IExpressionObjectFactoryReturn the complete list of expression objects that can be created by this factory.
This list will be used for determining if a factory might actually be asked to build an object, so it should contain all possible objects to be built by the factory.
- Specified by:
getAllExpressionObjectNamesin interfaceIExpressionObjectFactory- Returns:
- the list of objects this factory can build.
-
buildObject
public java.lang.Object buildObject(IExpressionContext context, java.lang.String expressionObjectName)
Description copied from interface:IExpressionObjectFactoryBuild the requested object.
- Specified by:
buildObjectin interfaceIExpressionObjectFactory- Parameters:
context- the context being used for processing the template.expressionObjectName- the name of the expression object to be built.- Returns:
- the built object, or
nullif the object could not be built.
-
isCacheable
public boolean isCacheable(java.lang.String expressionObjectName)
Description copied from interface:IExpressionObjectFactoryReturns whether a specific expression object can be cached and reused for all expressions in the same template execution or not.
Note this cacheable flag refers only to reuse of the object in expressions in expressions executed during a single template execution.
- Specified by:
isCacheablein interfaceIExpressionObjectFactory- Parameters:
expressionObjectName- the name of the expression object.- Returns:
trueis the object is to be considered cacheable,falseif not.
-
-