Class NonProducibleInjectionTarget<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    InjectionTarget<T>, Producer<T>, org.jboss.weld.manager.api.WeldInjectionTarget<T>

    public class NonProducibleInjectionTarget<T>
    extends BasicInjectionTarget<T>
    An implementation of InjectionTarget for classes that do not fulfill bean class requirements (e.g. are abstract or non-static inner classes). Instances of these class can be injected using this implementation. If the application attempts to produce(CreationalContext) a new instance of the class, CreationException is thrown.
    Author:
    Jozef Hartinger