java.lang.Object
org.omnifaces.cdi.InjectionTargetWrapper<T>
- All Implemented Interfaces:
InjectionTarget<T>,Producer<T>,FacesWrapper<InjectionTarget<T>>
public class InjectionTargetWrapper<T>
extends Object
implements InjectionTarget<T>, FacesWrapper<InjectionTarget<T>>
Provides a simple implementation of InjectionTarget that can be sub-classed by developers wishing to
provide specialized behavior to an existing InjectionTarget instance. The default implementation of all
methods is to call through to the wrapped InjectionTarget.
Usage: extend this class and provide the instance we are wrapping to the overloaded constructor.
- Since:
- 3.6
- Author:
- Bauke Scholtz
-
Constructor Summary
ConstructorsConstructorDescriptionInjectionTargetWrapper(InjectionTarget<T> wrapped) Construct a injection target wrapper which wraps the given injection target. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidinject(T instance, CreationalContext<T> ctx) voidpostConstruct(T instance) voidpreDestroy(T instance) produce(CreationalContext<T> ctx)
-
Constructor Details
-
InjectionTargetWrapper
Construct a injection target wrapper which wraps the given injection target.- Parameters:
wrapped- The injection target to be wrapped.
-
-
Method Details
-
getWrapped
- Specified by:
getWrappedin interfaceFacesWrapper<T>
-
produce
-
dispose
-
getInjectionPoints
- Specified by:
getInjectionPointsin interfaceProducer<T>
-
inject
- Specified by:
injectin interfaceInjectionTarget<T>
-
postConstruct
- Specified by:
postConstructin interfaceInjectionTarget<T>
-
preDestroy
- Specified by:
preDestroyin interfaceInjectionTarget<T>
-