org.jasig.portal.concurrency.caching
Class CacheFactoryEntityCachingService

java.lang.Object
  extended by org.jasig.portal.concurrency.caching.AbstractEntityCachingService
      extended by org.jasig.portal.concurrency.caching.CacheFactoryEntityCachingService
All Implemented Interfaces:
IEntityCachingService

public class CacheFactoryEntityCachingService
extends AbstractEntityCachingService

Creates MapBackedEntityCache instances that wrap Map caches retrieved from the CacheFactory service.

Version:
$Revision$
Author:
Eric Dalquist

Constructor Summary
CacheFactoryEntityCachingService()
           
 
Method Summary
protected  IEntityCache getCache(Class<? extends IBasicEntity> entityType)
          Retrieves the IEntityCache to store the specified entityType in.
 CacheFactory getCacheFactory()
           
 void setCacheFactory(CacheFactory cacheFactory)
           
 
Methods inherited from class org.jasig.portal.concurrency.caching.AbstractEntityCachingService
add, get, remove, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheFactoryEntityCachingService

public CacheFactoryEntityCachingService()
Method Detail

getCacheFactory

public CacheFactory getCacheFactory()
Returns:
the cacheFactory

setCacheFactory

public void setCacheFactory(CacheFactory cacheFactory)
Parameters:
cacheFactory - the cacheFactory to set

getCache

protected IEntityCache getCache(Class<? extends IBasicEntity> entityType)
                         throws CachingException
Description copied from class: AbstractEntityCachingService
Retrieves the IEntityCache to store the specified entityType in.

Specified by:
getCache in class AbstractEntityCachingService
Parameters:
entityType - The type to retrieve the cache for
Returns:
The cache for the specified type, should never be null.
Throws:
CachingException - If no cache can be found/created for the specified entityType.


Copyright © 2010 Jasig. All Rights Reserved.