/** * Attempts to get the PageContext object stashed away in the DispatcherHelper * and use it to generate an ExpressionEvaluator. * * @return an ExpressionEvaluator if possible, or null otherwise */ @Override protected ExpressionEvaluator getEvaluator() { final PageContext context = DispatcherHelper.getPageContext(); if (context == null) { log.error("Could not process expression based validation. It would seem that ", "your servlet container is being mean and will not let the dispatcher ", "servlet manufacture a PageContext object through the JSPFactory. The ", "result of this is that expression validation will be disabled. Sorry."); return null; } else { return context.getExpressionEvaluator(); } }
/** * Attempts to create an expression evaluator by reflecting to find the implementation * in the apache commons-el project. * * @return an instance of ExpressionEvaluatorImpl if it can, null otherwise */ @Override protected ExpressionEvaluator getEvaluator() { try { return (ExpressionEvaluator) ReflectUtil.findClass(COMMONS_CLASS).newInstance(); } catch (Exception e) { return null; } }
@Override @Deprecated public ExpressionEvaluator getExpressionEvaluator() { return invokingJspCtxt.getExpressionEvaluator(); }
/** * Provides programmatic access to the ExpressionEvaluator. The JSP * Container must return a valid instance of an ExpressionEvaluator that can * parse EL expressions. */ @Override @Deprecated public ExpressionEvaluator getExpressionEvaluator() { return new ExpressionEvaluatorImpl(this.applicationContext.getExpressionFactory()); }
public ExpressionEvaluator getExpressionEvaluator() { return invokingJspCtxt.getExpressionEvaluator(); }
public ExpressionEvaluator getExpressionEvaluator() { return null; }
@Override public ExpressionEvaluator getExpressionEvaluator() { throw new RuntimeException("Not implemented"); }
@Override public ExpressionEvaluator getExpressionEvaluator() { return null; }
public ExpressionEvaluator getExpressionEvaluator() { // TODO Auto-generated method stub return null; }
@Override public ExpressionEvaluator getExpressionEvaluator() { throw new UnsupportedOperationException(); }
@Override public ExpressionEvaluator getExpressionEvaluator() { // TODO Auto-generated method stub return null; }
@Override public ExpressionEvaluator getExpressionEvaluator() { throw new RuntimeException("not supported!"); }
public ExpressionEvaluator getExpressionEvaluator() { return null; //To change body of implemented methods use File | Settings | File Templates. }
@Override public ExpressionEvaluator getExpressionEvaluator() { return eval; }
@Override @Deprecated public ExpressionEvaluator getExpressionEvaluator() { return new MockExpressionEvaluator(this); }
public ExpressionEvaluator getExpressionEvaluator() { return new MockExpressionEvaluator(this); }
@Override public ExpressionEvaluator getExpressionEvaluator() { throw new UnsupportedOperationException("implement me"); }