org.jboss.seam.solder.bean
Class ForwardingInjectionTarget<T>

java.lang.Object
  extended by org.jboss.seam.solder.bean.ForwardingInjectionTarget<T>
Type Parameters:
T - The class of the instance
All Implemented Interfaces:
InjectionTarget<T>, Producer<T>

public abstract class ForwardingInjectionTarget<T>
extends Object
implements InjectionTarget<T>

An implementation of InjectionTarget that forwards all calls to delegate().

Author:
Pete Muir

Constructor Summary
ForwardingInjectionTarget()
           
 
Method Summary
protected abstract  InjectionTarget<T> delegate()
          All calls to this InjectionTarget instance are forwarded to the delegate unless overridden.
 void dispose(T instance)
           
 Set<InjectionPoint> getInjectionPoints()
           
 void inject(T instance, CreationalContext<T> ctx)
           
 void postConstruct(T instance)
           
 void preDestroy(T instance)
           
 T produce(CreationalContext<T> ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardingInjectionTarget

public ForwardingInjectionTarget()
Method Detail

delegate

protected abstract InjectionTarget<T> delegate()
All calls to this InjectionTarget instance are forwarded to the delegate unless overridden.

Returns:
the delegate InjectionTarget

inject

public void inject(T instance,
                   CreationalContext<T> ctx)
Specified by:
inject in interface InjectionTarget<T>

postConstruct

public void postConstruct(T instance)
Specified by:
postConstruct in interface InjectionTarget<T>

preDestroy

public void preDestroy(T instance)
Specified by:
preDestroy in interface InjectionTarget<T>

dispose

public void dispose(T instance)
Specified by:
dispose in interface Producer<T>

getInjectionPoints

public Set<InjectionPoint> getInjectionPoints()
Specified by:
getInjectionPoints in interface Producer<T>

produce

public T produce(CreationalContext<T> ctx)
Specified by:
produce in interface Producer<T>


Copyright © 2008-2010 Seam Framework. All Rights Reserved.