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>
ADelegatingProducer
and anInjectionTarget
that forwards all method calls to underlyingInjectionTarget
andProducer
implementations.- 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 void
inject(T instance, CreationalContext<T> cc)
void
postConstruct(T instance)
void
preDestroy(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
- theInjectionTarget
to which all operations will be forwarded; must not benull
- Throws:
NullPointerException
- ifdelegate
isnull
- See Also:
DelegatingInjectionTarget(InjectionTarget, Producer)
-
DelegatingInjectionTarget
public DelegatingInjectionTarget(InjectionTarget<T> injectionTargetDelegate, Producer<T> producerDelegate)
Creates a newDelegatingInjectionTarget
.- Parameters:
injectionTargetDelegate
- theInjectionTarget
to whichInjectionTarget
-specific operations will be forwarded; must not benull
producerDelegate
- theProducer
to 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:
inject
in interfaceInjectionTarget<T>
-
postConstruct
public void postConstruct(T instance)
- Specified by:
postConstruct
in interfaceInjectionTarget<T>
-
preDestroy
public void preDestroy(T instance)
- Specified by:
preDestroy
in interfaceInjectionTarget<T>
-
-