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 Details

    • createInjectionTarget

      WeldInjectionTarget<T> createInjectionTarget(jakarta.enterprise.inject.spi.Bean<T> bean)
      Specified by:
      createInjectionTarget in interface jakarta.enterprise.inject.spi.InjectionTargetFactory<T>
    • createNonProducibleInjectionTarget

      WeldInjectionTarget<T> createNonProducibleInjectionTarget()
      Creates a 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(jakarta.enterprise.context.spi.CreationalContext) and Producer.dispose(Object) methods should not be called on the returned instance. The Producer.produce(jakarta.enterprise.context.spi.CreationalContext) method of the returned injection target throws CreationException if called.
      Returns:
      the injection target
    • createInterceptorInjectionTarget

      WeldInjectionTarget<T> createInterceptorInjectionTarget()
      Create a new injection target for an interceptor bound using Interceptors or a deployment descriptor. Unlike createInjectionTarget(jakarta.enterprise.inject.spi.Bean), the resulting InjectionTarget does not support interception as it is itself an interceptor.
      Returns:
      the injection target