org.rhq.core.gui.util
Class FacesExpressionUtility

java.lang.Object
  extended by org.rhq.core.gui.util.FacesExpressionUtility

public abstract class FacesExpressionUtility
extends Object

A set of utility methods for working with EL Expressions within a JSF application.

Author:
Ian Springer

Constructor Summary
FacesExpressionUtility()
           
 
Method Summary
static javax.el.MethodExpression createMethodExpression(String expression, Class<?> expectedReturnType, Class<?>[] expectedParamTypes)
           
static javax.el.ValueExpression createValueExpression(String expression, Class<?> expectedType)
           
static
<T> T
getValue(String expressionString, Class<T> expectedType)
           
static
<T> T
getValue(javax.el.ValueExpression valueExpression, Class<T> expectedType)
           
static void setValue(javax.el.ValueExpression valueExpression, Object value)
           
static String unwrapExpressionString(String configurationExpressionString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacesExpressionUtility

public FacesExpressionUtility()
Method Detail

createValueExpression

public static javax.el.ValueExpression createValueExpression(String expression,
                                                             Class<?> expectedType)

getValue

public static <T> T getValue(javax.el.ValueExpression valueExpression,
                             Class<T> expectedType)

getValue

public static <T> T getValue(String expressionString,
                             Class<T> expectedType)

setValue

public static void setValue(javax.el.ValueExpression valueExpression,
                            Object value)

createMethodExpression

public static javax.el.MethodExpression createMethodExpression(String expression,
                                                               Class<?> expectedReturnType,
                                                               Class<?>[] expectedParamTypes)

unwrapExpressionString

public static String unwrapExpressionString(String configurationExpressionString)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.