Package org.jboss.weld.manager.api
Interface WeldInjectionTargetFactory<T>
- All Superinterfaces:
jakarta.enterprise.inject.spi.InjectionTargetFactory<T>
public interface WeldInjectionTargetFactory<T>
extends jakarta.enterprise.inject.spi.InjectionTargetFactory<T>
Specialized version which provides more options than the original
InjectionTargetFactory.- Author:
- Jozef Hartinger
-
Method Summary
Modifier and TypeMethodDescriptioncreateInjectionTarget(jakarta.enterprise.inject.spi.Bean<T> bean) Create a new injection target for an interceptor bound usingInterceptorsor a deployment descriptor.Creates aWeldInjectionTargetimplementation that does not support construction/destruction of instances but provides field/setter injection capabilities.Methods inherited from interface jakarta.enterprise.inject.spi.InjectionTargetFactory
configure
-
Method Details
-
createInjectionTarget
- Specified by:
createInjectionTargetin interfacejakarta.enterprise.inject.spi.InjectionTargetFactory<T>
-
createNonProducibleInjectionTarget
WeldInjectionTarget<T> createNonProducibleInjectionTarget()Creates aWeldInjectionTargetimplementation 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(jakarta.enterprise.context.spi.CreationalContext)andProducer.dispose(Object)methods should not be called on the returned instance. TheProducer.produce(jakarta.enterprise.context.spi.CreationalContext)method of the returned injection target throwsCreationExceptionif called.- Returns:
- the injection target
-
createInterceptorInjectionTarget
WeldInjectionTarget<T> createInterceptorInjectionTarget()Create a new injection target for an interceptor bound usingInterceptorsor a deployment descriptor. UnlikecreateInjectionTarget(jakarta.enterprise.inject.spi.Bean), the resulting InjectionTarget does not support interception as it is itself an interceptor.- Returns:
- the injection target
-