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 void
destroyInstance(Object o)
Object
newInstance(Class<?> c)
void
newInstance(Object o)
Object
newInstance(String className)
Object
newInstance(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:
newInstance
in interfaceorg.apache.tomcat.InstanceManager
- Throws:
IllegalAccessException
InvocationTargetException
NamingException
InstantiationException
ClassNotFoundException
-
newInstance
public Object newInstance(String fqcn, ClassLoader classLoader) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException
- Specified by:
newInstance
in interfaceorg.apache.tomcat.InstanceManager
- Throws:
IllegalAccessException
InvocationTargetException
NamingException
InstantiationException
ClassNotFoundException
-
newInstance
public Object newInstance(Class<?> c) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException
- Specified by:
newInstance
in interfaceorg.apache.tomcat.InstanceManager
- Throws:
IllegalAccessException
InvocationTargetException
NamingException
InstantiationException
-
newInstance
public void newInstance(Object o) throws IllegalAccessException, InvocationTargetException, NamingException
- Specified by:
newInstance
in interfaceorg.apache.tomcat.InstanceManager
- Throws:
IllegalAccessException
InvocationTargetException
NamingException
-
destroyInstance
public void destroyInstance(Object o) throws IllegalAccessException, InvocationTargetException
- Specified by:
destroyInstance
in interfaceorg.apache.tomcat.InstanceManager
- Throws:
IllegalAccessException
InvocationTargetException
-
-