org.ehcache.core.util
Class LifeCycleUtils

java.lang.Object
  extended by org.ehcache.core.util.LifeCycleUtils

public class LifeCycleUtils
extends java.lang.Object

Lifecycle utility methods.


Constructor Summary
LifeCycleUtils()
           
 
Method Summary
static LifeCycled closerFor(java.io.Closeable closeable)
          Returns a LifeCycled instance that close the supplied closeable upon lifecycle close.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifeCycleUtils

public LifeCycleUtils()
Method Detail

closerFor

public static LifeCycled closerFor(java.io.Closeable closeable)
Returns a LifeCycled instance that close the supplied closeable upon lifecycle close.

Parameters:
closeable - the closeable to close
Returns:
a lifecycled instance that closes the closeable upon close