org.jasig.portal.utils.cache
Class MapCacheFactoryBean

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean
      extended by org.jasig.portal.utils.cache.MapCacheFactoryBean
All Implemented Interfaces:
BeanClassLoaderAware, BeanFactoryAware, DisposableBean, FactoryBean, InitializingBean

public class MapCacheFactoryBean
extends AbstractFactoryBean

Factory bean that gets a Map cache wrapper from the configured CacheFactory for the specified cache name. If no name is specified the default cache is used.

Version:
$Revision$
Author:
Eric Dalquist

Field Summary
 
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
 
Constructor Summary
MapCacheFactoryBean()
           
 
Method Summary
protected  Object createInstance()
           
 CacheFactory getCacheFactory()
           
 String getCacheName()
           
 Class<?> getObjectType()
           
 void setCacheFactory(CacheFactory cacheFactory)
           
 void setCacheName(String cacheName)
           
 
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapCacheFactoryBean

public MapCacheFactoryBean()
Method Detail

getCacheFactory

public CacheFactory getCacheFactory()
Returns:
the cacheFactory

setCacheFactory

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

getCacheName

public String getCacheName()
Returns:
the cacheName

setCacheName

public void setCacheName(String cacheName)
Parameters:
cacheName - the cacheName to set

createInstance

protected Object createInstance()
                         throws Exception
Specified by:
createInstance in class AbstractFactoryBean
Throws:
Exception

getObjectType

public Class<?> getObjectType()
Specified by:
getObjectType in interface FactoryBean
Specified by:
getObjectType in class AbstractFactoryBean


Copyright © 2010 Jasig. All Rights Reserved.