org.jboss.weld.environment.servlet.util.TransparentELResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weld-servlet-shaded Show documentation
Show all versions of weld-servlet-shaded Show documentation
This jar bundles all the bits of Weld and CDI required for running in a Servlet container.
package org.jboss.weld.environment.servlet.util;
import javax.el.ELContext;
import javax.el.ELResolver;
import java.beans.FeatureDescriptor;
import java.util.Iterator;
/**
* An ELResolver that behaves as though it is invisible, meaning it's
* idempotent to the chain and the next ELResolver in the line will be
* consulted.
*
* @author Dan Allen
*/
public class TransparentELResolver extends ELResolver {
@Override
public Class> getCommonPropertyType(ELContext arg0, Object arg1) {
return null;
}
@Override
public Iterator getFeatureDescriptors(ELContext arg0, Object arg1) {
return null;
}
@Override
public Class> getType(ELContext arg0, Object arg1, Object arg2) {
return null;
}
@Override
public Object getValue(ELContext arg0, Object arg1, Object arg2) {
return null;
}
@Override
public boolean isReadOnly(ELContext arg0, Object arg1, Object arg2) {
return false;
}
@Override
public void setValue(ELContext arg0, Object arg1, Object arg2, Object arg3) {
}
}