@SuppressWarnings("unchecked") @Override public final <T> T evaluateExpressionGet(final FacesContext context, final String expression, final Class<? extends T> expectedType) throws ELException { ELContext elContext = context.getELContext(); ExpressionFactory factory = getExpressionFactory(); return (T) factory.createValueExpression(elContext, expression, expectedType).getValue(elContext); }
@Override public Object evaluateExpressionGet(FacesContext context, String expression, Class expectedType) throws ELException { ELContext elContext = context.getELContext(); return getExpressionFactory().createValueExpression(elContext, expression, expectedType).getValue(elContext); }
@SuppressWarnings("unchecked") @Override public final <T> T evaluateExpressionGet(final FacesContext context, final String expression, final Class<? extends T> expectedType) throws ELException { ELContext elContext = context.getELContext(); ExpressionFactory factory = getExpressionFactory(); return (T) factory.createValueExpression(elContext, expression, expectedType).getValue(elContext); }
@SuppressWarnings("unchecked") @Override public final <T> T evaluateExpressionGet(final FacesContext context, final String expression, final Class<? extends T> expectedType) throws ELException { ELContext elContext = context.getELContext(); ExpressionFactory factory = getExpressionFactory(); return (T) factory.createValueExpression(elContext, expression, expectedType).getValue(elContext); }
/** * @deprecated */ @Deprecated @Override public MethodBinding createMethodBinding(String reference, Class[] params) throws ReferenceSyntaxException { checkNull(reference, "reference"); checkEmpty(reference, "reference"); // TODO: this check should be performed by the expression factory. It is a requirement of the TCK if (!(reference.startsWith("#{") && reference.endsWith("}"))) { throw new ReferenceSyntaxException("Invalid method reference: '" + reference + "'"); } if (params == null) params = new Class[0]; MethodExpression methodExpression; try { methodExpression = getExpressionFactory().createMethodExpression(threadELContext(), reference, Object.class, params); } catch (ELException e) { throw new ReferenceSyntaxException(e); } return new MethodExpressionToMethodBinding(methodExpression); }
/** * @deprecated */ @Override public ValueBinding createValueBinding(String reference) throws ReferenceSyntaxException { checkNull(reference, "reference"); checkEmpty(reference, "reference"); ValueExpression valueExpression; try { valueExpression = getExpressionFactory().createValueExpression(threadELContext(), reference, Object.class); } catch (ELException e) { throw new ReferenceSyntaxException(e); } return new ValueExpressionToValueBinding(valueExpression); }
/** * @deprecated */ @Override public final ValueBinding createValueBinding(final String reference) throws ReferenceSyntaxException { checkNull(reference, "reference"); checkEmpty(reference, "reference"); ValueExpression valueExpression; try { valueExpression = getExpressionFactory().createValueExpression(threadELContext(), reference, Object.class); } catch (ELException e) { throw new ReferenceSyntaxException(e); } return new ValueExpressionToValueBinding(valueExpression); }
/** * @deprecated */ @Override public final ValueBinding createValueBinding(final String reference) throws ReferenceSyntaxException { checkNull(reference, "reference"); checkEmpty(reference, "reference"); ValueExpression valueExpression; try { valueExpression = getExpressionFactory().createValueExpression( threadELContext(), reference, Object.class); } catch (ELException e) { throw new ReferenceSyntaxException(e); } return new ValueExpressionToValueBinding(valueExpression); }
/** * @deprecated */ @Override public final ValueBinding createValueBinding(final String reference) throws ReferenceSyntaxException { checkNull(reference, "reference"); checkEmpty(reference, "reference"); ValueExpression valueExpression; try { valueExpression = getExpressionFactory().createValueExpression(threadELContext(), reference, Object.class); } catch (ELException e) { throw new ReferenceSyntaxException(e); } return new ValueExpressionToValueBinding(valueExpression); }
/** * @deprecated */ @Deprecated @Override public final MethodBinding createMethodBinding(final String reference, Class<?>[] params) throws ReferenceSyntaxException { checkNull(reference, "reference"); checkEmpty(reference, "reference"); // TODO: this check should be performed by the expression factory. It is // a requirement of the TCK if (!(reference.startsWith("#{") && reference.endsWith("}"))) { throw new ReferenceSyntaxException("Invalid method reference: '" + reference + "'"); } if (params == null) params = new Class[0]; MethodExpression methodExpression; try { methodExpression = getExpressionFactory().createMethodExpression(threadELContext(), reference, Object.class, params); } catch (ELException e) { throw new ReferenceSyntaxException(e); } return new MethodExpressionToMethodBinding(methodExpression); }
/** * @deprecated */ @Deprecated @Override public final MethodBinding createMethodBinding(final String reference, Class<?>[] params) throws ReferenceSyntaxException { checkNull(reference, "reference"); checkEmpty(reference, "reference"); // TODO: this check should be performed by the expression factory. It is // a requirement of the TCK if (!(reference.startsWith("#{") && reference.endsWith("}"))) { throw new ReferenceSyntaxException("Invalid method reference: '" + reference + "'"); } if (params == null) params = new Class[0]; MethodExpression methodExpression; try { methodExpression = getExpressionFactory().createMethodExpression(threadELContext(), reference, Object.class, params); } catch (ELException e) { throw new ReferenceSyntaxException(e); } return new MethodExpressionToMethodBinding(methodExpression); }
methodExpression = getExpressionFactory().createMethodExpression(threadELContext(), reference, Object.class, params);
if (name != null && name.length() > 0) name = ELText.parse(getExpressionFactory(), context.getELContext(), name).toString(context.getELContext()); if (library != null && library.length() > 0) library = ELText.parse(getExpressionFactory(), context.getELContext(), library).toString(context.getELContext()); if (target != null && target.length() > 0) target = ELText.parse(getExpressionFactory(), context.getELContext(), target).toString(context.getELContext());
if (name != null && name.length() > 0) name = ELText.parse(getExpressionFactory(), context.getELContext(), name).toString(context.getELContext()); if (library != null && library.length() > 0) library = ELText.parse(getExpressionFactory(), context.getELContext(), library).toString(context.getELContext()); if (target != null && target.length() > 0) target = ELText.parse(getExpressionFactory(), context.getELContext(), target).toString(context.getELContext());
if (name != null && name.length() > 0) name = ELText.parse(getExpressionFactory(), context.getELContext(), name).toString(context.getELContext()); if (library != null && library.length() > 0) library = ELText.parse(getExpressionFactory(), context.getELContext(), library).toString(context.getELContext()); if (target != null && target.length() > 0) target = ELText.parse(getExpressionFactory(), context.getELContext(), target).toString(context.getELContext());
if (name != null && name.length() > 0) name = ELText.parse(getExpressionFactory(), context.getELContext(), name).toString(context.getELContext()); if (library != null && library.length() > 0) library = ELText.parse(getExpressionFactory(), context.getELContext(), library).toString(context.getELContext()); if (target != null && target.length() > 0) target = ELText.parse(getExpressionFactory(), context.getELContext(), target).toString(context.getELContext());
if (name != null && name.length() > 0) name = ELText.parse(getExpressionFactory(), context.getELContext(), name).toString(context.getELContext()); if (library != null && library.length() > 0) library = ELText.parse(getExpressionFactory(), context.getELContext(), library).toString(context.getELContext()); if (target != null && target.length() > 0) target = ELText.parse(getExpressionFactory(), context.getELContext(), target).toString(context.getELContext());
if (name != null && name.length() > 0) name = ELText.parse(getExpressionFactory(), context.getELContext(), name).toString(context.getELContext()); if (library != null && library.length() > 0) library = ELText.parse(getExpressionFactory(), context.getELContext(), library).toString(context.getELContext()); if (target != null && target.length() > 0) target = ELText.parse(getExpressionFactory(), context.getELContext(), target).toString(context.getELContext());