@Module public class InjectionTargetBuilder<X> extends java.lang.Object implements InjectionTarget<X>
Constructor and Description |
---|
InjectionTargetBuilder(InjectManager cdiManager,
AnnotatedType<X> beanType) |
InjectionTargetBuilder(InjectManager cdiManager,
AnnotatedType<X> beanType,
Bean<X> bean) |
Modifier and Type | Method and Description |
---|---|
void |
bind() |
void |
dispose(X instance)
Dispose the bean.
|
AnnotatedType<X> |
getAnnotatedType() |
protected InjectManager |
getBeanManager() |
protected java.lang.Object |
getHandle() |
java.util.Set<InjectionPoint> |
getInjectionPoints()
Returns the injection points.
|
java.lang.String |
getPassivationId() |
ConfigProgram[] |
getPostConstructProgram() |
void |
inject(X instance,
CreationalContext<X> env)
Inject the bean.
|
static void |
introspectInit(java.util.ArrayList<ConfigProgram> initList,
AnnotatedType<?> type) |
static void |
introspectInit(java.util.ArrayList<ConfigProgram> initList,
java.lang.Class<?> type) |
static boolean |
isValid(java.lang.Class<?> type)
Checks for validity for classpath scanning.
|
static boolean |
isValidConstructor(java.lang.Class<?> type) |
void |
postConstruct(X instance)
PostConstruct initialization
|
void |
preDestroy(X instance)
Call pre-destroy
|
X |
produce(CreationalContext<X> env)
Instantiate the bean.
|
void |
setGenerateInterception(boolean isEnable) |
void |
setPostConstructProgram(ConfigProgram[] program) |
java.lang.String |
toString() |
void |
validate() |
public InjectionTargetBuilder(InjectManager cdiManager, AnnotatedType<X> beanType, Bean<X> bean)
public InjectionTargetBuilder(InjectManager cdiManager, AnnotatedType<X> beanType)
protected InjectManager getBeanManager()
public AnnotatedType<X> getAnnotatedType()
public java.util.Set<InjectionPoint> getInjectionPoints()
getInjectionPoints
in interface Producer<X>
public void validate()
public void bind()
public void setGenerateInterception(boolean isEnable)
public X produce(CreationalContext<X> env)
Producer
public void inject(X instance, CreationalContext<X> env)
InjectionTarget
inject
in interface InjectionTarget<X>
public void postConstruct(X instance)
InjectionTarget
postConstruct
in interface InjectionTarget<X>
public ConfigProgram[] getPostConstructProgram()
public void setPostConstructProgram(ConfigProgram[] program)
public void preDestroy(X instance)
preDestroy
in interface InjectionTarget<X>
public void dispose(X instance)
Producer
protected java.lang.Object getHandle()
public java.lang.String getPassivationId()
public static void introspectInit(java.util.ArrayList<ConfigProgram> initList, AnnotatedType<?> type) throws ConfigException
ConfigException
public static void introspectInit(java.util.ArrayList<ConfigProgram> initList, java.lang.Class<?> type) throws ConfigException
ConfigException
public static boolean isValid(java.lang.Class<?> type)
public static boolean isValidConstructor(java.lang.Class<?> type)
public java.lang.String toString()
toString
in class java.lang.Object