|
DRAFT | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - The class of the instancepublic interface InjectionTarget<T>
Provides operations for performing dependency injection and lifecycle callbacks on an instance of a type.
PostConstruct,
PreDestroy| Method Summary | |
|---|---|
void |
inject(T instance,
CreationalContext<T> ctx)
Performs dependency injection upon the given object. |
void |
postConstruct(T instance)
Calls the PostConstruct callback, if it exists,
according to the semantics required by the Java EE platform specification. |
void |
preDestroy(T instance)
Calls the PreDestroy callback, if it exists,
according to the semantics required by the Java EE platform specification. |
| Methods inherited from interface javax.enterprise.inject.spi.Producer |
|---|
dispose, getInjectionPoints, produce |
| Method Detail |
|---|
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 PostConstruct callback, if it exists,
according to the semantics required by the Java EE platform specification.
instance - The instance on which to invoke the
PostConstruct methodvoid preDestroy(T instance)
Calls the PreDestroy callback, if it exists,
according to the semantics required by the Java EE platform specification.
instance - The instance on which to invoke the
PreDestroy method
|
DRAFT | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.
Generated on 24-November-2009 03:24