public class StandardExpressionObjectFactory extends Object implements IExpressionObjectFactory
Builds the expression objects to be used by Standard dialects.
Constructor and Description |
---|
StandardExpressionObjectFactory() |
Modifier and Type | Method and Description |
---|---|
Object |
buildObject(IExpressionContext context,
String expressionObjectName)
Build the requested object.
|
Set<String> |
getAllExpressionObjectNames()
Return the complete list of expression objects that can be created by this factory.
|
boolean |
isCacheable(String expressionObjectName)
Returns whether a specific expression object can be cached and reused for all expressions in the
same template execution or not.
|
public static final String CONTEXT_EXPRESSION_OBJECT_NAME
public static final String ROOT_EXPRESSION_OBJECT_NAME
public static final String VARIABLES_EXPRESSION_OBJECT_NAME
public static final String SELECTION_TARGET_EXPRESSION_OBJECT_NAME
public static final String LOCALE_EXPRESSION_OBJECT_NAME
public static final String REQUEST_EXPRESSION_OBJECT_NAME
public static final String RESPONSE_EXPRESSION_OBJECT_NAME
public static final String SESSION_EXPRESSION_OBJECT_NAME
public static final String SERVLET_CONTEXT_EXPRESSION_OBJECT_NAME
public static final String CONVERSIONS_EXPRESSION_OBJECT_NAME
public static final String URIS_EXPRESSION_OBJECT_NAME
public static final String CALENDARS_EXPRESSION_OBJECT_NAME
public static final String DATES_EXPRESSION_OBJECT_NAME
public static final String BOOLS_EXPRESSION_OBJECT_NAME
public static final String NUMBERS_EXPRESSION_OBJECT_NAME
public static final String OBJECTS_EXPRESSION_OBJECT_NAME
public static final String STRINGS_EXPRESSION_OBJECT_NAME
public static final String ARRAYS_EXPRESSION_OBJECT_NAME
public static final String LISTS_EXPRESSION_OBJECT_NAME
public static final String SETS_EXPRESSION_OBJECT_NAME
public static final String MAPS_EXPRESSION_OBJECT_NAME
public static final String AGGREGATES_EXPRESSION_OBJECT_NAME
public static final String MESSAGES_EXPRESSION_OBJECT_NAME
public static final String IDS_EXPRESSION_OBJECT_NAME
public static final String EXECUTION_INFO_OBJECT_NAME
public static final String HTTP_SERVLET_REQUEST_EXPRESSION_OBJECT_NAME
public static final String HTTP_SESSION_EXPRESSION_OBJECT_NAME
public Set<String> getAllExpressionObjectNames()
IExpressionObjectFactory
Return 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.
getAllExpressionObjectNames
in interface IExpressionObjectFactory
public boolean isCacheable(String expressionObjectName)
IExpressionObjectFactory
Returns 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.
isCacheable
in interface IExpressionObjectFactory
expressionObjectName
- the name of the expression object.public Object buildObject(IExpressionContext context, String expressionObjectName)
IExpressionObjectFactory
Build the requested object.
buildObject
in interface IExpressionObjectFactory
context
- the context being used for processing the template.expressionObjectName
- the name of the expression object to be built.Copyright © 2016 The THYMELEAF team. All rights reserved.