Class DelegatingProducer<T>

  • Type Parameters:
    T - the type of produced object
    All Implemented Interfaces:
    javax.enterprise.inject.spi.Producer<T>
    Direct Known Subclasses:
    DelegatingInjectionTarget

    public class DelegatingProducer<T>
    extends Object
    implements javax.enterprise.inject.spi.Producer<T>
    A Producer implementation that forwards all operations to another Producer.
    • Constructor Detail

      • DelegatingProducer

        public DelegatingProducer​(javax.enterprise.inject.spi.Producer<T> delegate)
        Creates a new DelegatingProducer.
        Parameters:
        delegate - the Producer to which all operations will be forwarded; must not be null
        Throws:
        NullPointerException - if delegate is null
    • Method Detail

      • produce

        public T produce​(javax.enterprise.context.spi.CreationalContext<T> cc)
        Specified by:
        produce in interface javax.enterprise.inject.spi.Producer<T>
      • dispose

        public void dispose​(T instance)
        Specified by:
        dispose in interface javax.enterprise.inject.spi.Producer<T>
      • getInjectionPoints

        public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
        Specified by:
        getInjectionPoints in interface javax.enterprise.inject.spi.Producer<T>