com.hammurapi.config.runtime
Class FactoryClosureBase<T>

java.lang.Object
  extended by com.hammurapi.config.runtime.FactoryClosureBase<T>
All Implemented Interfaces:
FactoryClosure<T>

public abstract class FactoryClosureBase<T>
extends Object
implements FactoryClosure<T>


Field Summary
protected  CompositeDestroyable destroyableSink
           
 
Constructor Summary
FactoryClosureBase()
           
 
Method Summary
 Destroyable getDestroyable()
           
protected  void toDestroy(T result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hammurapi.config.bootstrap.FactoryClosure
create
 

Field Detail

destroyableSink

protected CompositeDestroyable destroyableSink
Constructor Detail

FactoryClosureBase

public FactoryClosureBase()
Method Detail

toDestroy

protected void toDestroy(T result)

getDestroyable

public Destroyable getDestroyable()
                           throws ConfigurationException
Specified by:
getDestroyable in interface FactoryClosure<T>
Returns:
Destroyable if factory result has resource cleanup logic, or null.
Throws:
ConfigurationException