fr.paris.lutece.portal.service.cache
Class CacheService

java.lang.Object
  extended by fr.paris.lutece.portal.service.cache.CacheService

public final class CacheService
extends java.lang.Object

Provides cache object for cacheable services


Method Summary
 net.sf.ehcache.Cache createCache(java.lang.String strCacheName)
          Create a cache for a given Service
static CacheService getInstance()
          Gets the unique instance of the CacheService
 void shutdown()
          Shutdown the cache service and the cache manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CacheService getInstance()
Gets the unique instance of the CacheService

Returns:
The unique instance of the CacheService

createCache

public net.sf.ehcache.Cache createCache(java.lang.String strCacheName)
Create a cache for a given Service

Parameters:
strCacheName - The Cache/Service name
Returns:
A cache object

shutdown

public void shutdown()
Shutdown the cache service and the cache manager. Should be called when the webapp is stopped.



Copyright © 2009 Mairie de Paris. All Rights Reserved.