public interface WeldInjectionTargetFactory<T>
extends javax.enterprise.inject.spi.InjectionTargetFactory<T>
InjectionTargetFactory
.Modifier and Type | Method and Description |
---|---|
WeldInjectionTarget<T> |
createInjectionTarget(javax.enterprise.inject.spi.Bean<T> 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(javax.enterprise.inject.spi.Bean<T> bean)
createInjectionTarget
in interface javax.enterprise.inject.spi.InjectionTargetFactory<T>
WeldInjectionTarget<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 © 2008-2015. All Rights Reserved.