Class WeldForwardingInstanceManager
- java.lang.Object
-
- org.jboss.weld.environment.tomcat.ForwardingInstanceManager
-
- org.jboss.weld.environment.tomcat.WeldForwardingInstanceManager
-
- All Implemented Interfaces:
org.apache.tomcat.InstanceManager
public class WeldForwardingInstanceManager extends ForwardingInstanceManager
Forwards all calls in turn to two delegates: first to InstanceManager, then to WeldInstanceManager- Author:
- Matija Mazi
-
-
Constructor Summary
Constructors Constructor Description WeldForwardingInstanceManager(org.apache.tomcat.InstanceManager originalAnnotationProcessor, org.apache.tomcat.InstanceManager weldProcessor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.tomcat.InstanceManagerdelegate()voiddestroyInstance(Object o)ObjectnewInstance(Class<?> clazz)voidnewInstance(Object o)ObjectnewInstance(String fqcn)ObjectnewInstance(String fqcn, ClassLoader classLoader)static voidreplaceInstanceManager(javax.servlet.ServletContext context, org.jboss.weld.manager.api.WeldManager manager)
-
-
-
Method Detail
-
delegate
protected org.apache.tomcat.InstanceManager delegate()
- Specified by:
delegatein classForwardingInstanceManager
-
destroyInstance
public void destroyInstance(Object o) throws IllegalAccessException, InvocationTargetException
- Specified by:
destroyInstancein interfaceorg.apache.tomcat.InstanceManager- Overrides:
destroyInstancein classForwardingInstanceManager- Throws:
IllegalAccessExceptionInvocationTargetException
-
newInstance
public void newInstance(Object o) throws IllegalAccessException, InvocationTargetException, NamingException
- Specified by:
newInstancein interfaceorg.apache.tomcat.InstanceManager- Overrides:
newInstancein classForwardingInstanceManager- Throws:
IllegalAccessExceptionInvocationTargetExceptionNamingException
-
newInstance
public Object newInstance(String fqcn, ClassLoader classLoader) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException, NoSuchMethodException
- Specified by:
newInstancein interfaceorg.apache.tomcat.InstanceManager- Overrides:
newInstancein classForwardingInstanceManager- Throws:
IllegalAccessExceptionInvocationTargetExceptionNamingExceptionInstantiationExceptionClassNotFoundExceptionNoSuchMethodException
-
newInstance
public Object newInstance(String fqcn) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException, NoSuchMethodException
- Specified by:
newInstancein interfaceorg.apache.tomcat.InstanceManager- Overrides:
newInstancein classForwardingInstanceManager- Throws:
IllegalAccessExceptionInvocationTargetExceptionNamingExceptionInstantiationExceptionClassNotFoundExceptionNoSuchMethodException
-
newInstance
public Object newInstance(Class<?> clazz) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, NoSuchMethodException
- Specified by:
newInstancein interfaceorg.apache.tomcat.InstanceManager- Overrides:
newInstancein classForwardingInstanceManager- Throws:
IllegalAccessExceptionInvocationTargetExceptionNamingExceptionInstantiationExceptionNoSuchMethodException
-
replaceInstanceManager
public static void replaceInstanceManager(javax.servlet.ServletContext context, org.jboss.weld.manager.api.WeldManager manager)
-
-