javax.el
Class ExpressionFactory

java.lang.Object
  extended by javax.el.ExpressionFactory

public abstract class ExpressionFactory
extends Object

Since:
2.1

Constructor Summary
ExpressionFactory()
           
 
Method Summary
abstract  Object coerceToType(Object obj, Class<?> expectedType)
           
abstract  MethodExpression createMethodExpression(ELContext context, String expression, Class<?> expectedReturnType, Class<?>[] expectedParamTypes)
           
abstract  ValueExpression createValueExpression(ELContext context, String expression, Class<?> expectedType)
           
abstract  ValueExpression createValueExpression(Object instance, Class<?> expectedType)
           
static ExpressionFactory newInstance()
          Create a new ExpressionFactory.
static ExpressionFactory newInstance(Properties properties)
          Create a new ExpressionFactory passing in the provided Properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionFactory

public ExpressionFactory()
Method Detail

coerceToType

public abstract Object coerceToType(Object obj,
                                    Class<?> expectedType)
                             throws ELException
Throws:
ELException

createValueExpression

public abstract ValueExpression createValueExpression(ELContext context,
                                                      String expression,
                                                      Class<?> expectedType)
                                               throws NullPointerException,
                                                      ELException
Throws:
NullPointerException
ELException

createValueExpression

public abstract ValueExpression createValueExpression(Object instance,
                                                      Class<?> expectedType)

createMethodExpression

public abstract MethodExpression createMethodExpression(ELContext context,
                                                        String expression,
                                                        Class<?> expectedReturnType,
                                                        Class<?>[] expectedParamTypes)
                                                 throws ELException,
                                                        NullPointerException
Throws:
ELException
NullPointerException

newInstance

public static ExpressionFactory newInstance()
Create a new ExpressionFactory. The class to use is determined by the following search order:
  1. services API (META-INF/services/javax.el.ExpressionFactory)
  2. $JRE_HOME/lib/el.properties - key javax.el.ExpressionFactory
  3. javax.el.ExpressionFactory
  4. Platform default implementation - org.apache.el.ExpressionFactoryImpl

Returns:
the new ExpressionFactory

newInstance

public static ExpressionFactory newInstance(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

(Built by coreservlets)

As of July 2010, there were no online versions of the servlet 3.0, JSP 2.2, and EL 2.2 Javadocs, except as part of the huge Java EE 6 API. So, I built them myself from the Tomcat 7 source code.

Java EE TutorialsJava EE Training