info.magnolia.module.cache
Class CacheModule

java.lang.Object
  extended by info.magnolia.module.cache.CacheModule
All Implemented Interfaces:
ModuleLifecycle

public class CacheModule
extends java.lang.Object
implements ModuleLifecycle

The CacheModule holds several named CacheConfiguration instances and a CacheFactory.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph
See Also:
CacheConfiguration, CacheFactory

Constructor Summary
CacheModule()
           
 
Method Summary
 void addConfiguration(java.lang.String name, CacheConfiguration config)
           
 CacheFactory getCacheFactory()
           
 ContentCompression getCompression()
           
 CacheConfiguration getConfiguration(java.lang.String name)
           
 java.util.Map<java.lang.String,CacheConfiguration> getConfigurations()
           
static CacheModule getInstance()
           
 void register(CacheModuleLifecycleListener listener)
           
 void setCacheFactory(CacheFactory cacheFactory)
           
 void setCompression(ContentCompression compression)
           
 void setConfigurations(java.util.Map<java.lang.String,CacheConfiguration> configurations)
           
 void start(ModuleLifecycleContext moduleLifecycleContext)
           
 void stop(ModuleLifecycleContext moduleLifecycleContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheModule

public CacheModule()
Method Detail

getCacheFactory

public CacheFactory getCacheFactory()

setCacheFactory

public void setCacheFactory(CacheFactory cacheFactory)

getConfigurations

public java.util.Map<java.lang.String,CacheConfiguration> getConfigurations()

setConfigurations

public void setConfigurations(java.util.Map<java.lang.String,CacheConfiguration> configurations)

addConfiguration

public void addConfiguration(java.lang.String name,
                             CacheConfiguration config)

getConfiguration

public CacheConfiguration getConfiguration(java.lang.String name)

setCompression

public void setCompression(ContentCompression compression)

getCompression

public ContentCompression getCompression()

register

public void register(CacheModuleLifecycleListener listener)

start

public void start(ModuleLifecycleContext moduleLifecycleContext)
Specified by:
start in interface ModuleLifecycle

stop

public void stop(ModuleLifecycleContext moduleLifecycleContext)
Specified by:
stop in interface ModuleLifecycle

getInstance

public static CacheModule getInstance()


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.