org.infinispan.loaders.decorators
Class AbstractDecoratorConfigurationBean

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.AbstractNamedCacheConfigurationBean
          extended by org.infinispan.loaders.decorators.AbstractDecoratorConfigurationBean
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent, JAXBUnmarshallable, CacheLoaderConfig, CacheStoreConfig
Direct Known Subclasses:
AsyncStoreConfig, SingletonStoreConfig

public abstract class AbstractDecoratorConfigurationBean
extends AbstractNamedCacheConfigurationBean
implements CacheStoreConfig

Class to aid decorators to be able to fluently modify parent properties. I.e. async store to enable navigating to cache store configuration.

Since:
5.0
Author:
Galder ZamarreƱo
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
cr
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
overriddenConfigurationElements
 
Constructor Summary
AbstractDecoratorConfigurationBean()
           
 
Method Summary
 AsyncStoreConfig asyncStore()
           
 AbstractCacheStoreConfig build()
          Get back up to the CacheStoreConfig level.
 AbstractDecoratorConfigurationBean clone()
           
 CacheStoreConfig fetchPersistentState(Boolean fetchPersistentState)
           
 AsyncStoreConfig getAsyncStoreConfig()
           
 String getCacheLoaderClassName()
           
 ClassLoader getClassLoader()
          Get the classloader that should be used to load resources from the classpath
 Integer getPurgerThreads()
           
 SingletonStoreConfig getSingletonStoreConfig()
           
 CacheStoreConfig ignoreModifications(Boolean ignoreModifications)
           
 Boolean isFetchPersistentState()
           
 Boolean isIgnoreModifications()
           
 Boolean isPurgeOnStartup()
           
 Boolean isPurgeSynchronously()
           
 CacheStoreConfig purgeOnStartup(Boolean purgeOnStartup)
           
 CacheStoreConfig purgerThreads(Integer purgerThreads)
           
 CacheStoreConfig purgeSynchronously(Boolean purgeSynchronously)
           
 void setAsyncStoreConfig(AsyncStoreConfig asyncStoreConfig)
           
 void setCacheLoaderClassName(String s)
           
 void setCacheStoreConfig(AbstractCacheStoreConfig cacheStoreConfig)
           
 void setFetchPersistentState(Boolean fetchPersistentState)
           
 void setIgnoreModifications(Boolean ignoreModifications)
           
 void setPurgeOnStartup(Boolean purgeOnStartup)
           
 void setPurgeSynchronously(Boolean purgeSynchronously)
           
 void setSingletonStoreConfig(SingletonStoreConfig singletonStoreConfig)
           
 SingletonStoreConfig singletonStore()
           
 
Methods inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
hasComponentStarted, inject
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc, willUnmarshall
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.infinispan.loaders.CacheLoaderConfig
accept
 

Constructor Detail

AbstractDecoratorConfigurationBean

public AbstractDecoratorConfigurationBean()
Method Detail

setCacheStoreConfig

public void setCacheStoreConfig(AbstractCacheStoreConfig cacheStoreConfig)

getCacheLoaderClassName

public String getCacheLoaderClassName()
Specified by:
getCacheLoaderClassName in interface CacheLoaderConfig

setCacheLoaderClassName

public void setCacheLoaderClassName(String s)
Specified by:
setCacheLoaderClassName in interface CacheLoaderConfig

isPurgeOnStartup

public Boolean isPurgeOnStartup()
Specified by:
isPurgeOnStartup in interface CacheStoreConfig

isFetchPersistentState

public Boolean isFetchPersistentState()
Specified by:
isFetchPersistentState in interface CacheStoreConfig

setFetchPersistentState

public void setFetchPersistentState(Boolean fetchPersistentState)
Specified by:
setFetchPersistentState in interface CacheStoreConfig

setIgnoreModifications

public void setIgnoreModifications(Boolean ignoreModifications)
Specified by:
setIgnoreModifications in interface CacheStoreConfig

fetchPersistentState

public CacheStoreConfig fetchPersistentState(Boolean fetchPersistentState)
Specified by:
fetchPersistentState in interface CacheStoreConfig

ignoreModifications

public CacheStoreConfig ignoreModifications(Boolean ignoreModifications)
Specified by:
ignoreModifications in interface CacheStoreConfig

isIgnoreModifications

public Boolean isIgnoreModifications()
Specified by:
isIgnoreModifications in interface CacheStoreConfig

setPurgeOnStartup

public void setPurgeOnStartup(Boolean purgeOnStartup)
Specified by:
setPurgeOnStartup in interface CacheStoreConfig

purgeOnStartup

public CacheStoreConfig purgeOnStartup(Boolean purgeOnStartup)
Specified by:
purgeOnStartup in interface CacheStoreConfig

getSingletonStoreConfig

public SingletonStoreConfig getSingletonStoreConfig()
Specified by:
getSingletonStoreConfig in interface CacheStoreConfig

setSingletonStoreConfig

public void setSingletonStoreConfig(SingletonStoreConfig singletonStoreConfig)
Specified by:
setSingletonStoreConfig in interface CacheStoreConfig

getAsyncStoreConfig

public AsyncStoreConfig getAsyncStoreConfig()
Specified by:
getAsyncStoreConfig in interface CacheStoreConfig

setAsyncStoreConfig

public void setAsyncStoreConfig(AsyncStoreConfig asyncStoreConfig)
Specified by:
setAsyncStoreConfig in interface CacheStoreConfig

isPurgeSynchronously

public Boolean isPurgeSynchronously()
Specified by:
isPurgeSynchronously in interface CacheStoreConfig

setPurgeSynchronously

public void setPurgeSynchronously(Boolean purgeSynchronously)
Specified by:
setPurgeSynchronously in interface CacheStoreConfig

purgeSynchronously

public CacheStoreConfig purgeSynchronously(Boolean purgeSynchronously)
Specified by:
purgeSynchronously in interface CacheStoreConfig

purgerThreads

public CacheStoreConfig purgerThreads(Integer purgerThreads)
Specified by:
purgerThreads in interface CacheStoreConfig

getPurgerThreads

public Integer getPurgerThreads()
Specified by:
getPurgerThreads in interface CacheStoreConfig

asyncStore

public AsyncStoreConfig asyncStore()
Specified by:
asyncStore in interface CacheStoreConfig

singletonStore

public SingletonStoreConfig singletonStore()
Specified by:
singletonStore in interface CacheStoreConfig

build

public AbstractCacheStoreConfig build()
Get back up to the CacheStoreConfig level.


clone

public AbstractDecoratorConfigurationBean clone()
Specified by:
clone in interface CloneableConfigurationComponent
Specified by:
clone in interface CacheLoaderConfig
Overrides:
clone in class AbstractNamedCacheConfigurationBean

getClassLoader

public ClassLoader getClassLoader()
Description copied from interface: CacheLoaderConfig
Get the classloader that should be used to load resources from the classpath

Specified by:
getClassLoader in interface CacheLoaderConfig
Returns:

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.