public class Tomcat7AnnotationLifecycleProvider extends Object implements DiscoverableLifecycleProvider, LifecycleProvider2
| Constructor and Description |
|---|
Tomcat7AnnotationLifecycleProvider(ExternalContext externalContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroyInstance(Object instance)
Take whatever steps are needed to shut down the object, including calling a preDestroy method.
|
boolean |
isAvailable() |
Object |
newInstance(String className)
Create an object of the class with the supplied name, inject dependencies as appropriate,
and call a postContruct method as appropriate.
|
void |
postConstruct(Object instance)
Call a postConstruct method as appropriate.
|
public Tomcat7AnnotationLifecycleProvider(ExternalContext externalContext)
public Object newInstance(String className) throws ClassNotFoundException, IllegalAccessException, InstantiationException, NamingException, InvocationTargetException
LifecycleProvidernewInstance in interface LifecycleProvidernewInstance in interface LifecycleProvider2className - name of the class of the desired objectClassNotFoundExceptionIllegalAccessExceptionInstantiationExceptionNamingExceptionInvocationTargetExceptionpublic void destroyInstance(Object instance) throws IllegalAccessException, InvocationTargetException
LifecycleProviderdestroyInstance in interface LifecycleProviderinstance - object to shut down.IllegalAccessExceptionInvocationTargetExceptionpublic void postConstruct(Object instance) throws IllegalAccessException, InvocationTargetException
LifecycleProvider2postConstruct in interface LifecycleProvider2instance - object to initializeIllegalAccessExceptionInvocationTargetExceptionpublic boolean isAvailable()
isAvailable in interface DiscoverableLifecycleProviderCopyright © 2025 The Apache Software Foundation. All rights reserved.