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 override getWrapped() to return the instance we are wrapping.
| Constructor and Description |
|---|
InjectionTargetWrapper(InjectionTarget<T> wrapped) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose(T instance) |
Set<InjectionPoint> |
getInjectionPoints() |
InjectionTarget<T> |
getWrapped() |
void |
inject(T instance,
CreationalContext<T> ctx) |
void |
postConstruct(T instance) |
void |
preDestroy(T instance) |
T |
produce(CreationalContext<T> ctx) |
public InjectionTargetWrapper(InjectionTarget<T> wrapped)
public InjectionTarget<T> getWrapped()
getWrapped in interface FacesWrapper<InjectionTarget<T>>public Set<InjectionPoint> getInjectionPoints()
getInjectionPoints in interface Producer<T>public void inject(T instance, CreationalContext<T> ctx)
inject in interface InjectionTarget<T>public void postConstruct(T instance)
postConstruct in interface InjectionTarget<T>public void preDestroy(T instance)
preDestroy in interface InjectionTarget<T>Copyright © 2012–2021 OmniFaces. All rights reserved.