org.wanghy.cache.provider.oscache
Class OscacheManagerFactoryBean

java.lang.Object
  extended byorg.wanghy.cache.provider.AbstractSingletonCacheManagerFactoryBean
      extended byorg.wanghy.cache.provider.AbstractConfigurationResourceCacheManagerFactoryBean
          extended byorg.wanghy.cache.provider.oscache.OscacheManagerFactoryBean
All Implemented Interfaces:
DisposableBean, FactoryBean, InitializingBean

public final class OscacheManagerFactoryBean
extends AbstractConfigurationResourceCacheManagerFactoryBean

FactoryBean that exposes a OSCache GeneralCacheAdministrator singleton, configured from a specified config location.

If no config location is specified, a GeneralCacheAdministrator will be configured from "oscache.properties" in the root of the class path.

Version:
$Revision: 1.6 $ $Date: 2005/03/03 09:24:21 $
Author:
Alex Ruiz

Field Summary
private  GeneralCacheAdministrator cacheManager
          The cache manager managed by this factory.
private static Log logger
          Message logger.
 
Fields inherited from class org.wanghy.cache.provider.AbstractConfigurationResourceCacheManagerFactoryBean
 
Constructor Summary
OscacheManagerFactoryBean()
          Constructor.
 
Method Summary
 void afterPropertiesSet()
          Builds the cache manager after all the properties of this factory has been set by the BeanFactory.
 void destroy()
          Shuts down the cache manager before this factory is destroyed by the BeanFactory.
 Object getObject()
          Returns cacheManager.
 Class getObjectType()
          Returns the type of cacheManager.
 
Methods inherited from class org.wanghy.cache.provider.AbstractConfigurationResourceCacheManagerFactoryBean
getConfigLocation, setConfigLocation
 
Methods inherited from class org.wanghy.cache.provider.AbstractSingletonCacheManagerFactoryBean
isSingleton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static Log logger
Message logger.


cacheManager

private GeneralCacheAdministrator cacheManager
The cache manager managed by this factory.

Constructor Detail

OscacheManagerFactoryBean

public OscacheManagerFactoryBean()
Constructor.

Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Builds the cache manager after all the properties of this factory has been set by the BeanFactory.

Throws:
Exception

destroy

public void destroy()
             throws Exception
Shuts down the cache manager before this factory is destroyed by the BeanFactory.

Throws:
Exception

getObject

public Object getObject()
                 throws Exception
Returns cacheManager.

Returns:
the cache manager managed by this factory.
Throws:
Exception

getObjectType

public Class getObjectType()
Returns the type of cacheManager.

Returns:
the type of the cache manager managed by this factory.


Copyright © 2004-2005 Alex Ruiz. All Rights Reserved.