Class DelegatingInjectionTarget<T>
- java.lang.Object
-
- io.helidon.integrations.cdi.delegates.DelegatingProducer<T>
-
- io.helidon.integrations.cdi.delegates.DelegatingInjectionTarget<T>
-
- Type Parameters:
T- the type of produced object
- All Implemented Interfaces:
InjectionTarget<T>,Producer<T>
public class DelegatingInjectionTarget<T> extends DelegatingProducer<T> implements InjectionTarget<T>
ADelegatingProducerand anInjectionTargetthat forwards all method calls to underlyingInjectionTargetandProducerimplementations.- See Also:
InjectionTarget,Producer
-
-
Constructor Summary
Constructors Constructor Description DelegatingInjectionTarget(InjectionTarget<T> delegate)Creates a newDelegatingInjectionTarget.DelegatingInjectionTarget(InjectionTarget<T> injectionTargetDelegate, Producer<T> producerDelegate)Creates a newDelegatingInjectionTarget.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinject(T instance, CreationalContext<T> cc)voidpostConstruct(T instance)voidpreDestroy(T instance)-
Methods inherited from class io.helidon.integrations.cdi.delegates.DelegatingProducer
dispose, getInjectionPoints, produce
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.enterprise.inject.spi.Producer
dispose, getInjectionPoints, produce
-
-
-
-
Constructor Detail
-
DelegatingInjectionTarget
public DelegatingInjectionTarget(InjectionTarget<T> delegate)
Creates a newDelegatingInjectionTarget.- Parameters:
delegate- theInjectionTargetto which all operations will be forwarded; must not benull- Throws:
NullPointerException- ifdelegateisnull- See Also:
DelegatingInjectionTarget(InjectionTarget, Producer)
-
DelegatingInjectionTarget
public DelegatingInjectionTarget(InjectionTarget<T> injectionTargetDelegate, Producer<T> producerDelegate)
Creates a newDelegatingInjectionTarget.- Parameters:
injectionTargetDelegate- theInjectionTargetto whichInjectionTarget-specific operations will be forwarded; must not benullproducerDelegate- theProducerto whichProducer-specific operations will be forwarded; must not benull- Throws:
NullPointerException- if either parameter isnull
-
-
Method Detail
-
inject
public void inject(T instance, CreationalContext<T> cc)
- Specified by:
injectin interfaceInjectionTarget<T>
-
postConstruct
public void postConstruct(T instance)
- Specified by:
postConstructin interfaceInjectionTarget<T>
-
preDestroy
public void preDestroy(T instance)
- Specified by:
preDestroyin interfaceInjectionTarget<T>
-
-