|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InjectionTarget<T>
Provides operations for performing dependency injection and lifecycle callbacks on an instance of a type.
Method Summary | |
---|---|
void |
inject(T instance,
CreationalContext<T> ctx)
Performs dependency injection upon the given object. |
void |
postConstruct(T instance)
Calls PostConstruct callback method if exists. |
void |
preDestroy(T instance)
Calls PreDestroy callback method if exists. |
Methods inherited from interface javax.enterprise.inject.spi.Producer |
---|
dispose, getInjectionPoints, produce |
Method Detail |
---|
void inject(T instance, CreationalContext<T> ctx)
instance
- bean instancectx
- creational contextvoid postConstruct(T instance)
PostConstruct
callback method if exists.
instance
- bean instancevoid preDestroy(T instance)
PreDestroy
callback method if exists.
instance
- bean instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |