com.caucho.config.inject
Class DisposesProducer<T,X>

java.lang.Object
  extended by com.caucho.config.inject.DisposesProducer<T,X>
All Implemented Interfaces:
Producer<T>

@Module
public class DisposesProducer<T,X>
extends java.lang.Object
implements Producer<T>


Method Summary
 void destroy(T instance, CreationalContextImpl<T> cxt)
          Call destroy
 void dispose(T instance)
          Dispose the bean.
 java.util.Set<InjectionPoint> getInjectionPoints()
          Returns the injection points.
 T produce(CreationalContext<T> cxt)
          Produces a new bean instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

produce

public T produce(CreationalContext<T> cxt)
Produces a new bean instance

Specified by:
produce in interface Producer<T>

dispose

public void dispose(T instance)
Description copied from interface: Producer
Dispose the bean.

Specified by:
dispose in interface Producer<T>

destroy

public void destroy(T instance,
                    CreationalContextImpl<T> cxt)
Call destroy


getInjectionPoints

public java.util.Set<InjectionPoint> getInjectionPoints()
Description copied from interface: Producer
Returns the injection points.

Specified by:
getInjectionPoints in interface Producer<T>