org.apache.camel.component.cache
Class CacheManagerFactory

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.component.cache.CacheManagerFactory
All Implemented Interfaces:
org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
Direct Known Subclasses:
DefaultCacheManagerFactory, FileCacheManagerFactory

public abstract class CacheManagerFactory
extends org.apache.camel.support.ServiceSupport


Field Summary
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
CacheManagerFactory()
           
 
Method Summary
protected abstract  net.sf.ehcache.CacheManager createCacheManagerInstance()
          Creates CacheManager.
protected  void doStart()
           
protected  void doStop()
           
 net.sf.ehcache.CacheManager getInstance()
           
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheManagerFactory

public CacheManagerFactory()
Method Detail

getInstance

public net.sf.ehcache.CacheManager getInstance()

createCacheManagerInstance

protected abstract net.sf.ehcache.CacheManager createCacheManagerInstance()
Creates CacheManager.

The default implementation is DefaultCacheManagerFactory.

Returns:
CacheManager

doStart

protected void doStart()
                throws Exception
Specified by:
doStart in class org.apache.camel.support.ServiceSupport
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Specified by:
doStop in class org.apache.camel.support.ServiceSupport
Throws:
Exception


Apache CAMEL