T - public class InjectionTargetFactoryImpl<T> extends Object implements WeldInjectionTargetFactory<T>
InjectionTarget implementations for a given combination of AnnotatedType and
Bean objects.| Modifier | Constructor and Description |
|---|---|
protected |
InjectionTargetFactoryImpl(AnnotatedType<T> type,
BeanManagerImpl manager) |
| Modifier and Type | Method and Description |
|---|---|
WeldInjectionTarget<T> |
createInjectionTarget(Bean<T> bean)
Create a new injection target for a bean.
|
BasicInjectionTarget<T> |
createInjectionTarget(EnhancedAnnotatedType<T> type,
Bean<T> bean,
boolean interceptor) |
WeldInjectionTarget<T> |
createInterceptorInjectionTarget()
Create a new injection target for an interceptor bound using
Interceptors or a deployment descriptor. |
protected InjectionTarget<T> |
createMessageDrivenInjectionTarget(EjbDescriptor<T> descriptor) |
WeldInjectionTarget<T> |
createNonProducibleInjectionTarget()
Creates a
WeldInjectionTarget implementation that does not support construction/destruction of instances but provides field/setter injection
capabilities. |
protected InjectionTargetFactoryImpl(AnnotatedType<T> type, BeanManagerImpl manager)
public WeldInjectionTarget<T> createInjectionTarget(Bean<T> bean)
InjectionTargetFactorycreateInjectionTarget in interface InjectionTargetFactory<T>createInjectionTarget in interface WeldInjectionTargetFactory<T>bean - the bean to create the injection target for, or null if creating a non-contextual objectpublic WeldInjectionTarget<T> createInterceptorInjectionTarget()
WeldInjectionTargetFactoryInterceptors or a deployment descriptor. Unlike
WeldInjectionTargetFactory.createInjectionTarget(javax.enterprise.inject.spi.Bean), the resulting InjectionTarget does not support interception as it is itself an
interceptor.createInterceptorInjectionTarget in interface WeldInjectionTargetFactory<T>public BasicInjectionTarget<T> createInjectionTarget(EnhancedAnnotatedType<T> type, Bean<T> bean, boolean interceptor)
protected InjectionTarget<T> createMessageDrivenInjectionTarget(EjbDescriptor<T> descriptor)
public WeldInjectionTarget<T> createNonProducibleInjectionTarget()
WeldInjectionTargetFactoryWeldInjectionTarget 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.createNonProducibleInjectionTarget in interface WeldInjectionTargetFactory<T>Copyright © 2015. All Rights Reserved.