T - public class WeldInjectionTargetBuilderImpl<T> extends java.lang.Object implements WeldInjectionTargetBuilder<T>, java.security.PrivilegedAction<BasicInjectionTarget<T>>
WeldInjectionTargetBuilder implementation. The builder runs in a privileged context.| Constructor and Description |
|---|
WeldInjectionTargetBuilderImpl(AnnotatedType<T> type,
BeanManagerImpl manager) |
| Modifier and Type | Method and Description |
|---|---|
WeldInjectionTarget<T> |
build()
Returns a newly-created
WeldInjectionTarget based on the contents of this builder. |
BasicInjectionTarget<T> |
run() |
WeldInjectionTargetBuilder<T> |
setBean(Bean<T> bean)
Sets the bean that the resulting
WeldInjectionTarget corresponds to. |
WeldInjectionTargetBuilder<T> |
setDecorationEnabled(boolean value)
Enables/disables decoration support in the resulting
WeldInjectionTargetBuilder. |
WeldInjectionTargetBuilder<T> |
setInterceptionEnabled(boolean value)
Enables/disables interception support in the resulting
WeldInjectionTargetBuilder. |
WeldInjectionTargetBuilder<T> |
setResourceInjectionEnabled(boolean value)
Enables/disables resource injection in the resulting
WeldInjectionTargetBuilder. |
WeldInjectionTargetBuilder<T> |
setTargetClassLifecycleCallbacksEnabled(boolean value)
Enables/disables target class lifecycle callback in the resulting
WeldInjectionTargetBuilder. |
java.lang.String |
toString() |
public WeldInjectionTargetBuilderImpl(AnnotatedType<T> type, BeanManagerImpl manager)
public WeldInjectionTargetBuilder<T> setResourceInjectionEnabled(boolean value)
WeldInjectionTargetBuilderWeldInjectionTargetBuilder. By default, this feature is enabled.setResourceInjectionEnabled in interface WeldInjectionTargetBuilder<T>public WeldInjectionTargetBuilder<T> setTargetClassLifecycleCallbacksEnabled(boolean value)
WeldInjectionTargetBuilderWeldInjectionTargetBuilder. By default, this feature is enabled.setTargetClassLifecycleCallbacksEnabled in interface WeldInjectionTargetBuilder<T>public WeldInjectionTargetBuilder<T> setInterceptionEnabled(boolean value)
WeldInjectionTargetBuilderWeldInjectionTargetBuilder. By default, this feature is enabled.setInterceptionEnabled in interface WeldInjectionTargetBuilder<T>public WeldInjectionTargetBuilder<T> setDecorationEnabled(boolean value)
WeldInjectionTargetBuilderWeldInjectionTargetBuilder. By default, this feature is enabled as long
as the bean is set.setDecorationEnabled in interface WeldInjectionTargetBuilder<T>public WeldInjectionTargetBuilder<T> setBean(Bean<T> bean)
WeldInjectionTargetBuilderWeldInjectionTarget corresponds to. This is an optional attribute of a WeldInjectionTarget and it
is ok to leave this unset for any non-contextual component.setBean in interface WeldInjectionTargetBuilder<T>bean - the specified beanpublic WeldInjectionTarget<T> build()
WeldInjectionTargetBuilderWeldInjectionTarget based on the contents of this builder.build in interface WeldInjectionTargetBuilder<T>public BasicInjectionTarget<T> run()
run in interface java.security.PrivilegedAction<BasicInjectionTarget<T>>public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014. All Rights Reserved.