|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LifecycleProvider
Proposed interface to annotation service. An implementation of this class needs to know the appropriate classloader, dependencies to be injected, and lifecycle methods to be called.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
Object newInstance(String className)
throws ClassNotFoundException,
IllegalAccessException,
InstantiationException,
NamingException,
InvocationTargetException
className - name of the class of the desired object
ClassNotFoundException
IllegalAccessException
InstantiationException
NamingException
InvocationTargetException
void destroyInstance(Object o)
throws IllegalAccessException,
InvocationTargetException
o - object to shut down.
IllegalAccessException
InvocationTargetException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||