T
- The class of the instancepublic interface InjectionTarget<T> extends Producer<T>
Provides operations for performing dependency injection and lifecycle callbacks on an instance of a type.
javax.annotation.PostConstruct
,
javax.annotation.PreDestroy
Modifier and Type | Method and Description |
---|---|
void |
inject(T instance,
CreationalContext<T> ctx)
Performs dependency injection upon the given object.
|
void |
postConstruct(T instance)
Calls the
javax.annotation.PostConstruct callback, if it exists, according to the semantics required by the Java
EE platform specification. |
void |
preDestroy(T instance)
Calls the
javax.annotation.PreDestroy callback, if it exists, according to the semantics required by the Java EE
platform specification. |
dispose, getInjectionPoints, produce
void inject(T instance, CreationalContext<T> ctx)
Performs dependency injection upon the given object. Performs Java EE component environment injection, sets the value of all injected fields, and calls all initializer methods.
instance
- The instance upon which to perform injectionctx
- The CreationalContext
to use for creating new instancesvoid postConstruct(T instance)
Calls the javax.annotation.PostConstruct
callback, if it exists, according to the semantics required by the Java
EE platform specification.
instance
- The instance on which to invoke the javax.annotation.PostConstruct
methodvoid preDestroy(T instance)
Calls the javax.annotation.PreDestroy
callback, if it exists, according to the semantics required by the Java EE
platform specification.
instance
- The instance on which to invoke the javax.annotation.PreDestroy
methodCopyright © 2008-2013 JBoss by Red Hat, Inc.. All Rights Reserved.