org.jboss.weld.environment.tomcat.ForwardingInstanceManager 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.tomcat;
import java.lang.reflect.InvocationTargetException;
import javax.naming.NamingException;
import org.apache.tomcat.InstanceManager;
public abstract class ForwardingInstanceManager implements InstanceManager {
protected abstract InstanceManager delegate();
public void destroyInstance(Object o) throws IllegalAccessException, InvocationTargetException {
delegate().destroyInstance(o);
}
public void newInstance(Object o) throws IllegalAccessException, InvocationTargetException, NamingException {
delegate().newInstance(o);
}
public Object newInstance(String fqcn, ClassLoader classLoader) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException, NoSuchMethodException {
return delegate().newInstance(fqcn, classLoader);
}
public Object newInstance(String fqcn) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException, NoSuchMethodException {
return delegate().newInstance(fqcn);
}
public Object newInstance(Class clazz) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, NoSuchMethodException {
return delegate().newInstance(clazz);
}
}