public class JavaeeInstanceManager extends Object implements org.apache.tomcat.InstanceManager
| Constructor and Description |
|---|
JavaeeInstanceManager(org.apache.catalina.core.StandardContext webapp,
WebContext webContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroyInstance(Object o) |
javax.servlet.ServletContext |
getServletContext() |
void |
inject(Object o) |
Object |
newInstance(Class<?> clazz) |
void |
newInstance(Object o) |
Object |
newInstance(String className) |
Object |
newInstance(String className,
ClassLoader classLoader) |
WebContext.Instance |
newWeakableInstance(Class<?> clazz) |
void |
postConstruct(Object instance,
Class<?> clazz)
Call postConstruct method on the specified instance recursively from deepest superclass to actual class.
|
protected void |
preDestroy(Object instance,
Class<?> clazz)
Call preDestroy method on the specified instance recursively from deepest superclass to actual class.
|
public JavaeeInstanceManager(org.apache.catalina.core.StandardContext webapp,
WebContext webContext)
public javax.servlet.ServletContext getServletContext()
public Object newInstance(Class<?> clazz) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException
newInstance in interface org.apache.tomcat.InstanceManagerIllegalAccessExceptionInvocationTargetExceptionNamingExceptionInstantiationExceptionpublic WebContext.Instance newWeakableInstance(Class<?> clazz) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException
public Object newInstance(String className) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException
newInstance in interface org.apache.tomcat.InstanceManagerIllegalAccessExceptionInvocationTargetExceptionNamingExceptionInstantiationExceptionClassNotFoundExceptionpublic Object newInstance(String className, ClassLoader classLoader) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException, ClassNotFoundException
newInstance in interface org.apache.tomcat.InstanceManagerIllegalAccessExceptionInvocationTargetExceptionNamingExceptionInstantiationExceptionClassNotFoundExceptionpublic void newInstance(Object o) throws IllegalAccessException, InvocationTargetException, NamingException
newInstance in interface org.apache.tomcat.InstanceManagerIllegalAccessExceptionInvocationTargetExceptionNamingExceptionpublic void destroyInstance(Object o) throws IllegalAccessException, InvocationTargetException
destroyInstance in interface org.apache.tomcat.InstanceManagerIllegalAccessExceptionInvocationTargetExceptionpublic void inject(Object o)
public void postConstruct(Object instance, Class<?> clazz) throws IllegalAccessException, InvocationTargetException
instance - object to call postconstruct methods onclazz - (super) class to examine for postConstruct annotation.IllegalAccessException - if postConstruct method is inaccessible.InvocationTargetException - if call failsprotected void preDestroy(Object instance, Class<?> clazz) throws IllegalAccessException, InvocationTargetException
instance - object to call preDestroy methods onclazz - (super) class to examine for preDestroy annotation.IllegalAccessException - if preDestroy method is inaccessible.InvocationTargetException - if call failsCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.