org.jboss.seam.core
@Scope(value=APPLICATION) @BypassInterceptors @Install(precedence=0) @Name(value="org.jboss.seam.core.expressions") public class Expressions extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static interface |
Expressions.MethodExpression<T>
A method expression - an EL expression that evaluates to
a method.
|
static interface |
Expressions.ValueExpression<T>
A value expression - an EL expression that evaluates to
an attribute getter or get/set pair.
|
Constructor and Description |
---|
Expressions() |
Modifier and Type | Method and Description |
---|---|
Expressions.MethodExpression<Object> |
createMethodExpression(String expression)
Create a method expression.
|
<T> Expressions.MethodExpression<T> |
createMethodExpression(String expression,
Class<T> type,
Class... argTypes)
Create a method expression.
|
Expressions.ValueExpression<Object> |
createValueExpression(String expression)
Create a value expression.
|
<T> Expressions.ValueExpression<T> |
createValueExpression(String expression,
Class<T> type)
Create a value expression.
|
javax.el.ELContext |
getELContext()
Get an appropriate ELContext.
|
javax.el.ExpressionFactory |
getExpressionFactory()
Get the JBoss EL ExpressionFactory
|
static Expressions |
instance() |
protected boolean |
isFacesContextActive() |
public javax.el.ExpressionFactory getExpressionFactory()
public javax.el.ELContext getELContext()
public Expressions.ValueExpression<Object> createValueExpression(String expression)
expression
- a JBoss EL value expressionpublic Expressions.MethodExpression<Object> createMethodExpression(String expression)
expression
- a JBoss EL method expressionpublic <T> Expressions.ValueExpression<T> createValueExpression(String expression, Class<T> type)
expression
- a JBoss EL value expressiontype
- the type of the valuepublic <T> Expressions.MethodExpression<T> createMethodExpression(String expression, Class<T> type, Class... argTypes)
expression
- a JBoss EL method expressiontype
- the method return typeargTypes
- the method parameter typesprotected boolean isFacesContextActive()
public static Expressions instance()
Copyright © 2015 Seam Framework. All Rights Reserved.