| java.lang.Object javax.el.ExpressionFactory de.odysseus.el.ExpressionFactoryImpl
ExpressionFactoryImpl | public class ExpressionFactoryImpl extends javax.el.ExpressionFactory (Code) | | Expression factory implementation.
This class is also used as an EL "service provider".
The JUEL jar files specify this class as their expression factory
implementation in META-INF/services/javax.el.ExpressionFactory .
Calling
ExpressionFactory.getExpressionFactory will then return
an instance of this class, configured as described below.
The default constructor loads properties from resources
-
JAVA_HOME/lib/el.properties -
If this file exists and if it contains property javax.el.ExpressionFactory
whose value is the name of this class, these properties are taken as default properties.
-
el.properties on your classpath. These properties override the
properties from JAVA_HOME/lib/el.properties .
There's also a constructor to explicitly pass in an instance of
Properties .
Having this, the following properties are read:
-
javax.el.cacheSize - cache size (int, default is 1000)
-
javax.el.methodInvocations - allow method invocations
as in ${foo.bar(baz)} (boolean, default is false ).
-
javax.el.nullProperties - resolve null properties
as in ${foo[null]} (boolean, default is false ).
author: Christoph Beck |
ExpressionFactoryImpl | public ExpressionFactoryImpl()(Code) | | Create a new expression factory using the default parser and tree cache implementations.
The builder and cache are configured from el.properties (see above).
The maximum cache size will be 1000 unless overridden in el.properties .
|
ExpressionFactoryImpl | public ExpressionFactoryImpl(Properties properties)(Code) | | Create a new expression factory using the default builder and cache implementations.
The builder and cache are configured using the specified properties.
The maximum cache size will be 1000 unless overridden by property javax.el.cacheSize .
Parameters: properties - used to initialize builder and cache (may be null ) |
ExpressionFactoryImpl | public ExpressionFactoryImpl(TreeStore store)(Code) | | Create a new expression factory.
Parameters: store - the tree store used to parse and cache parse trees. |
createTreeStore | protected TreeStore createTreeStore(int defaultCacheSize, Properties properties)(Code) | | Create the factory's tree store.
This implementation creates a new tree store using the default builder and cache
implementations. The builder and cache are configured using the specified properties.
The maximum cache size will be as specified unless overridden by property
javax.el.cacheSize .
|
|
|