|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatefulObjectFactory<T>
Creates and destroys stateful objects. The object returned by create has dependencies injected. The PostConstruct callback, if defined, has been called and the Init callback, if defined, has been called.
Method Summary | |
---|---|
T |
create(Class<?>[] initTypes,
Object[] initValues)
Creates a new stateful object by calling it's empty constructor, do injection, calling post-construct and finally calling the appropriate init method. |
void |
destroy(T obj)
Perform any cleanup actions on the object, such as calling the pre-destroy callback. |
Method Detail |
---|
T create(Class<?>[] initTypes, Object[] initValues)
initTypes
- the argument types for the init methodinitValues
- the arguments for the init method
void destroy(T obj)
obj
- the object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |