org.zkoss.zel
Class ExpressionFactory
java.lang.Object
org.zkoss.zel.ExpressionFactory
- Direct Known Subclasses:
- ExpressionFactoryImpl
public abstract class ExpressionFactory
- extends java.lang.Object
- Since:
- 2.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionFactory
public ExpressionFactory()
coerceToType
public abstract java.lang.Object coerceToType(java.lang.Object obj,
java.lang.Class<?> expectedType)
throws ELException
- Throws:
ELException
createValueExpression
public abstract ValueExpression createValueExpression(ELContext context,
java.lang.String expression,
java.lang.Class<?> expectedType)
throws java.lang.NullPointerException,
ELException
- Throws:
java.lang.NullPointerException
ELException
createValueExpression
public abstract ValueExpression createValueExpression(java.lang.Object instance,
java.lang.Class<?> expectedType)
createMethodExpression
public abstract MethodExpression createMethodExpression(ELContext context,
java.lang.String expression,
java.lang.Class<?> expectedReturnType,
java.lang.Class<?>[] expectedParamTypes)
throws ELException,
java.lang.NullPointerException
- Throws:
ELException
java.lang.NullPointerException
newInstance
public static ExpressionFactory newInstance()
- Create a new
ExpressionFactory
. The class to use is determined by
the following search order:
- services API (META-INF/services/org.zkoss.zel.ExpressionFactory)
- $JRE_HOME/lib/el.properties - key org.zkoss.zel.ExpressionFactory
- org.zkoss.zel.ExpressionFactory
- Platform default implementation -
org.zkoss.zel.impl.ExpressionFactoryImpl
- Returns:
- the new ExpressionFactory
newInstance
public static ExpressionFactory newInstance(java.util.Properties properties)
- Create a new
ExpressionFactory
passing in the provided
Properties
. Search order is the same as newInstance()
.
- Parameters:
properties
- the properties to be passed to the new instance (may be null)
- Returns:
- the new ExpressionFactory
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.