info.magnolia.module.cache
Class CacheConfiguration

java.lang.Object
  extended by info.magnolia.module.cache.CacheConfiguration

public class CacheConfiguration
extends java.lang.Object

Each CacheConfiguration holds a CachePolicy, a FlushPolicy and a BrowserCachePolicy. Based on the outcome of the cachePolicy the defined executors will be called.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph
See Also:
CachePolicy, FlushPolicy

Constructor Summary
CacheConfiguration()
           
 
Method Summary
 void addExecutor(java.lang.String name, CachePolicyExecutor executor)
           
 BrowserCachePolicy getBrowserCachePolicy()
           
 CachePolicy getCachePolicy()
           
 CachePolicyExecutor getExecutor(CachePolicyResult.CachePolicyBehaviour behaviour)
           
 java.util.Map getExecutors()
           
 FlushPolicy getFlushPolicy()
           
 java.lang.String getName()
           
 void setBrowserCachePolicy(BrowserCachePolicy browserCachePolicy)
           
 void setCachePolicy(CachePolicy cachePolicy)
           
 void setExecutors(java.util.Map executors)
           
 void setFlushPolicy(FlushPolicy flushPolicy)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheConfiguration

public CacheConfiguration()
Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getCachePolicy

public CachePolicy getCachePolicy()

setCachePolicy

public void setCachePolicy(CachePolicy cachePolicy)

getFlushPolicy

public FlushPolicy getFlushPolicy()

setFlushPolicy

public void setFlushPolicy(FlushPolicy flushPolicy)

getExecutor

public CachePolicyExecutor getExecutor(CachePolicyResult.CachePolicyBehaviour behaviour)

getBrowserCachePolicy

public BrowserCachePolicy getBrowserCachePolicy()

setBrowserCachePolicy

public void setBrowserCachePolicy(BrowserCachePolicy browserCachePolicy)

getExecutors

public java.util.Map getExecutors()

setExecutors

public void setExecutors(java.util.Map executors)

addExecutor

public void addExecutor(java.lang.String name,
                        CachePolicyExecutor executor)


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