public static MethodExpression evalAsMethodExpression ( String p_expression ) throws PropertyNotFoundException { FacesContext context = FacesContext . getCurrentInstance ( ) ; ExpressionFactory expressionFactory = context . getApplication ( ) . getExpressionFactory ( ) ; ELContext elContext = context . getELContext ( ) ; MethodExpression mex = expressionFactory . createMethodExpression ( elContext , p_expression , Object . class , new Class [ 0 ] ) ; return mex ; }
Evaluates an EL expression into an object .