Class UndertowJSPInstanceManager
- java.lang.Object
-
- org.wildfly.extension.undertow.deployment.UndertowJSPInstanceManager
-
- All Implemented Interfaces:
org.apache.tomcat.InstanceManager
public class UndertowJSPInstanceManager extends Object implements org.apache.tomcat.InstanceManager
InstanceManager is evil and needs to go away We don't use web injection container for instances of org.apache.jasper.runtime.HttpJspBase, as it causes problems with Jakarta Server Pages hot reload. Because a new Jakarta Server Pages class has the same name the generated ID is exactly the same.- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description UndertowJSPInstanceManager(WebInjectionContainer webInjectionContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroyInstance(Object o)ObjectnewInstance(Class<?> c)voidnewInstance(Object o)ObjectnewInstance(String className)ObjectnewInstance(String fqcn, ClassLoader classLoader)
-
-
-
Constructor Detail
-
UndertowJSPInstanceManager
public UndertowJSPInstanceManager(WebInjectionContainer webInjectionContainer)
-
-
Method Detail
-
newInstance
public Object newInstance(String className) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException
- Specified by:
newInstancein interfaceorg.apache.tomcat.InstanceManager- Throws:
IllegalAccessExceptionInvocationTargetExceptionNamingExceptionInstantiationExceptionClassNotFoundException
-
newInstance
public Object newInstance(String fqcn, ClassLoader classLoader) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException
- Specified by:
newInstancein interfaceorg.apache.tomcat.InstanceManager- Throws:
IllegalAccessExceptionInvocationTargetExceptionNamingExceptionInstantiationExceptionClassNotFoundException
-
newInstance
public Object newInstance(Class<?> c) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException
- Specified by:
newInstancein interfaceorg.apache.tomcat.InstanceManager- Throws:
IllegalAccessExceptionInvocationTargetExceptionNamingExceptionInstantiationException
-
newInstance
public void newInstance(Object o) throws IllegalAccessException, InvocationTargetException, NamingException
- Specified by:
newInstancein interfaceorg.apache.tomcat.InstanceManager- Throws:
IllegalAccessExceptionInvocationTargetExceptionNamingException
-
destroyInstance
public void destroyInstance(Object o) throws IllegalAccessException, InvocationTargetException
- Specified by:
destroyInstancein interfaceorg.apache.tomcat.InstanceManager- Throws:
IllegalAccessExceptionInvocationTargetException
-
-