@Override public Object getValue(ELContext context, Object base, Object property) throws NullPointerException, PropertyNotFoundException, ELException { // Si l'Objet de base est null if(base != null) this.base = base; // On obtient la Valeur Object value = super.getValue(context, this.base, property); // On retourne le resultat return value; }
@Override public Object getValue(ELContext context, Object base, Object property) { Object result = super.getValue(context, base, validatePropertyName(property)); return result instanceof Class ? null : result; }
@Override public Object getValue(ELContext elContext, Object base, Object property) { try { return (property instanceof Method) ? property : super.getValue(elContext, base, property); } catch (PropertyNotFoundException e) { // lets see if its a method call... Method method = findMethod(elContext, base, property); if (method != null) { elContext.setPropertyResolved(true); return method; } else { throw e; } } }
/** {@inheritDoc} */ @Override public Object getValue(ELContext context, Object base, Object property) { // only resolve at the root of the context if (base != null) { return null; } Object retValue = null; if (requestProperties.contains(property)) { TilesRequestContext request = (TilesRequestContext) context .getContext(TilesRequestContext.class); retValue = super.getValue(context, request, property); } else if (applicationProperties.contains(property)) { TilesApplicationContext applicationContext = (TilesApplicationContext) context .getContext(TilesApplicationContext.class); retValue = super.getValue(context, applicationContext, property); } if (retValue != null) { context.setPropertyResolved(true); } return retValue; }
return _bundleResolver.getValue(env, base, property); else return _beanResolver.getValue(env, base, property);
@Override protected void triggerLeak() throws Exception { BeanELResolver beanELResolver = new BeanELResolver(); beanELResolver.getValue(new MyELContext(), new Bean(), "foo"); // Will put class in strong reference cache }