public interface WeldInjectionTargetFactory<T> extends InjectionTargetFactory<T>
InjectionTargetFactory.| Modifier and Type | Method and Description |
|---|---|
WeldInjectionTarget<T> |
createInjectionTarget(Bean<T> bean)
Create a new injection target for a bean.
|
WeldInjectionTarget<T> |
createInterceptorInjectionTarget()
Create a new injection target for an interceptor bound using
Interceptors or a deployment descriptor. |
WeldInjectionTarget<T> |
createNonProducibleInjectionTarget()
Creates a
WeldInjectionTarget implementation that does not support construction/destruction of instances but provides field/setter injection
capabilities. |
WeldInjectionTarget<T> createInjectionTarget(Bean<T> bean)
InjectionTargetFactorycreateInjectionTarget in interface InjectionTargetFactory<T>bean - the bean to create the injection target for, or null if creating a non-contextual objectWeldInjectionTarget<T> createNonProducibleInjectionTarget()
WeldInjectionTarget implementation that does not support construction/destruction of instances but provides field/setter injection
capabilities. Such implementation is often handy for integration with other frameworks in situations when an existing Java object needs to be injected.
Producer.produce(javax.enterprise.context.spi.CreationalContext) and Producer.dispose(Object) methods should not be called on
the returned instance. The Producer.produce(javax.enterprise.context.spi.CreationalContext) method of the returned injection target
throws CreationException if called.WeldInjectionTarget<T> createInterceptorInjectionTarget()
Interceptors or a deployment descriptor. Unlike
createInjectionTarget(javax.enterprise.inject.spi.Bean), the resulting InjectionTarget does not support interception as it is itself an
interceptor.Copyright © 2014 Seam Framework. All Rights Reserved.