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 objectClassNotFoundException
IllegalAccessException
InstantiationException
NamingException
InvocationTargetException
void destroyInstance(Object o) throws IllegalAccessException, InvocationTargetException
o
- object to shut down.IllegalAccessException
InvocationTargetException
Copyright © 2020 The Apache Software Foundation. All rights reserved.