public class JavaeeInstanceManager extends Object implements org.apache.tomcat.InstanceManager
| Constructor and Description |
|---|
JavaeeInstanceManager(WebContext webContext,
org.apache.catalina.core.StandardContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroyInstance(Object o) |
void |
inject(Object o) |
Object |
newInstance(Class<?> clazz) |
void |
newInstance(Object o) |
Object |
newInstance(String className) |
Object |
newInstance(String className,
ClassLoader classLoader) |
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(WebContext webContext, org.apache.catalina.core.StandardContext context)
public Object newInstance(Class<?> clazz) throws IllegalAccessException, InvocationTargetException, NamingException, InstantiationException
newInstance in interface org.apache.tomcat.InstanceManagerIllegalAccessExceptionInvocationTargetExceptionNamingExceptionInstantiationExceptionpublic 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-2014 The Apache Software Foundation. All Rights Reserved.