org.xwiki.cache.jbosscache.internal
Class JBossCacheCacheConfiguration

java.lang.Object
  extended by org.xwiki.cache.util.AbstractCacheConfigurationLoader
      extended by org.xwiki.cache.jbosscache.internal.JBossCacheCacheConfiguration

public class JBossCacheCacheConfiguration
extends AbstractCacheConfigurationLoader

Convert XWiki cache configuration into JBossCache configuration.

Version:
$Id$

Field Summary
static java.lang.String CONFX_EVICTION_WAKEUPINTERVAL
          The name of the field containing the wakeup interval to set to EvictionConfig.
 
Constructor Summary
JBossCacheCacheConfiguration(Container container, CacheConfiguration configuration, java.lang.String defaultPropsId)
           
 
Method Summary
protected  org.jboss.cache.config.Configuration getDefaultConfig()
           
 org.jboss.cache.config.Configuration getJBossCacheConfiguration()
           
 
Methods inherited from class org.xwiki.cache.util.AbstractCacheConfigurationLoader
createTempDir, getCacheConfiguration, getDefaultPropsId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFX_EVICTION_WAKEUPINTERVAL

public static final java.lang.String CONFX_EVICTION_WAKEUPINTERVAL
The name of the field containing the wakeup interval to set to EvictionConfig.

See Also:
Constant Field Values
Constructor Detail

JBossCacheCacheConfiguration

public JBossCacheCacheConfiguration(Container container,
                                    CacheConfiguration configuration,
                                    java.lang.String defaultPropsId)
Parameters:
container - the container used to access configuration files, can be null if there's no container
configuration - the XWiki cache API configuration.
defaultPropsId - the default configuration identifier used to load cache configuration file.
Method Detail

getJBossCacheConfiguration

public org.jboss.cache.config.Configuration getJBossCacheConfiguration()
Returns:
the JBossCache configuration.

getDefaultConfig

protected org.jboss.cache.config.Configuration getDefaultConfig()
Returns:
the default JBossCache configuration.


Copyright © 2004-2011 XWiki. All Rights Reserved.