Class WeldForwardingInstanceManager
java.lang.Object
org.jboss.weld.environment.tomcat.ForwardingInstanceManager
org.jboss.weld.environment.tomcat.WeldForwardingInstanceManager
- All Implemented Interfaces:
org.apache.tomcat.InstanceManager
Forwards all calls in turn to two delegates: first to InstanceManager, then to WeldInstanceManager
- Author:
- Matija Mazi
-
Constructor Summary
ConstructorsConstructorDescriptionWeldForwardingInstanceManager(org.apache.tomcat.InstanceManager originalAnnotationProcessor, org.apache.tomcat.InstanceManager weldProcessor) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.tomcat.InstanceManagerdelegate()voidnewInstance(Class<?> clazz) voidnewInstance(String fqcn) newInstance(String fqcn, ClassLoader classLoader) static voidreplaceInstanceManager(jakarta.servlet.ServletContext context, org.jboss.weld.manager.api.WeldManager manager) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tomcat.InstanceManager
backgroundProcess
-
Constructor Details
-
WeldForwardingInstanceManager
public WeldForwardingInstanceManager(org.apache.tomcat.InstanceManager originalAnnotationProcessor, org.apache.tomcat.InstanceManager weldProcessor)
-
-
Method Details
-
delegate
protected org.apache.tomcat.InstanceManager delegate()- Specified by:
delegatein classForwardingInstanceManager
-
destroyInstance
- 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(jakarta.servlet.ServletContext context, org.jboss.weld.manager.api.WeldManager manager)
-