T- The class of the instance
public interface InjectionTarget<T>extends Producer<T>
Provides operations for performing dependency injection and lifecycle callbacks on an instance of a type.
|Modifier and Type||Method and Description|
Performs dependency injection upon the given object.
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 injection
CreationalContextto use for creating new instances
void postConstruct(T instance)
PostConstruct callback, if it exists, according to the semantics required by the Java EE platform specification.
instance- The instance on which to invoke the
Copyright © 2015. All Rights Reserved.