public interface LifecycleProvider
| 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. | 
| 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. | 
Object newInstance(String className) throws ClassNotFoundException, IllegalAccessException, InstantiationException, NamingException, InvocationTargetException
className - name of the class of the desired objectClassNotFoundExceptionIllegalAccessExceptionInstantiationExceptionNamingExceptionInvocationTargetExceptionvoid destroyInstance(Object o) throws IllegalAccessException, InvocationTargetException
o - object to shut down.IllegalAccessExceptionInvocationTargetExceptionCopyright © 2016 The Apache Software Foundation. All Rights Reserved.