org.alfresco.repo.cache
Class EhCacheManagerFactoryBean

java.lang.Object
  extended by org.alfresco.repo.cache.EhCacheManagerFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class EhCacheManagerFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

This is virtually a copy of the Springframework version, with the exception that it uses the newer constructors for the EHCacheManager instances.


Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
EhCacheManagerFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 java.lang.Object getObject()
           
 java.lang.Class getObjectType()
           
 boolean isSingleton()
           
 void setConfigLocation(org.springframework.core.io.Resource configLocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

EhCacheManagerFactoryBean

public EhCacheManagerFactoryBean()
Method Detail

setConfigLocation

public void setConfigLocation(org.springframework.core.io.Resource configLocation)
Parameters:
configLocation - a resource location using the file: or classpath: prefix

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.io.IOException,
                               net.sf.ehcache.CacheException
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.io.IOException
net.sf.ehcache.CacheException

getObject

public java.lang.Object getObject()
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean

getObjectType

public java.lang.Class getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

destroy

public void destroy()
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.