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>
A
DelegatingProducer
and an InjectionTarget
that
forwards all method calls to underlying InjectionTarget
and
Producer
implementations.- See Also:
-
Constructor Summary
ConstructorDescriptionDelegatingInjectionTarget
(InjectionTarget<T> delegate) Creates a newDelegatingInjectionTarget
.DelegatingInjectionTarget
(InjectionTarget<T> injectionTargetDelegate, Producer<T> producerDelegate) Creates a newDelegatingInjectionTarget
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 jakarta.enterprise.inject.spi.Producer
dispose, getInjectionPoints, produce
-
Constructor Details
-
DelegatingInjectionTarget
Creates a newDelegatingInjectionTarget
.- Parameters:
delegate
- theInjectionTarget
to which all operations will be forwarded; must not benull
- Throws:
NullPointerException
- ifdelegate
isnull
- See Also:
-
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 Details
-
inject
- Specified by:
inject
in interfaceInjectionTarget<T>
-
postConstruct
- Specified by:
postConstruct
in interfaceInjectionTarget<T>
-
preDestroy
- Specified by:
preDestroy
in interfaceInjectionTarget<T>
-