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
ConstructorsConstructorDescriptionDelegatingInjectionTarget(InjectionTarget<T> delegate) Creates a newDelegatingInjectionTarget.DelegatingInjectionTarget(InjectionTarget<T> injectionTargetDelegate, Producer<T> producerDelegate) Creates a newDelegatingInjectionTarget. -
Method Summary
Modifier and TypeMethodDescriptionvoidinject(T instance, CreationalContext<T> cc) voidpostConstruct(T instance) voidpreDestroy(T instance) Methods inherited from class io.helidon.integrations.cdi.delegates.DelegatingProducer
dispose, getInjectionPoints, produceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.enterprise.inject.spi.Producer
dispose, getInjectionPoints, produce
-
Constructor Details
-
DelegatingInjectionTarget
Creates a newDelegatingInjectionTarget.- Parameters:
delegate- theInjectionTargetto which all operations will be forwarded; must not benull- Throws:
NullPointerException- ifdelegateisnull- See Also:
-
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 Details
-
inject
- Specified by:
injectin interfaceInjectionTarget<T>
-
postConstruct
- Specified by:
postConstructin interfaceInjectionTarget<T>
-
preDestroy
- Specified by:
preDestroyin interfaceInjectionTarget<T>
-