public class TomcatAnnotationLifecycleProvider extends Object implements DiscoverableLifecycleProvider, LifecycleProvider2
| Constructor and Description | 
|---|
| TomcatAnnotationLifecycleProvider(ExternalContext externalContext) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | destroyInstance(Object o)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 o)Call a postConstruct method as appropriate. | 
public TomcatAnnotationLifecycleProvider(ExternalContext externalContext)
public Object newInstance(String className) throws InstantiationException, IllegalAccessException, InvocationTargetException, NamingException, ClassNotFoundException
LifecycleProvidernewInstance in interface LifecycleProvidernewInstance in interface LifecycleProvider2className - name of the class of the desired objectInstantiationExceptionIllegalAccessExceptionInvocationTargetExceptionNamingExceptionClassNotFoundExceptionpublic void destroyInstance(Object o) throws IllegalAccessException, InvocationTargetException
LifecycleProviderdestroyInstance in interface LifecycleProvidero - object to shut down.IllegalAccessExceptionInvocationTargetExceptionpublic boolean isAvailable()
isAvailable in interface DiscoverableLifecycleProviderpublic void postConstruct(Object o) throws IllegalAccessException, InvocationTargetException
LifecycleProvider2postConstruct in interface LifecycleProvider2o - object to initializeIllegalAccessExceptionInvocationTargetExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.