org.infinispan.config
Class CacheLoaderManagerConfig

java.lang.Object
  extended by org.infinispan.config.AbstractConfigurationBean
      extended by org.infinispan.config.AbstractNamedCacheConfigurationBean
          extended by org.infinispan.config.CacheLoaderManagerConfig
All Implemented Interfaces:
Serializable, Cloneable, CloneableConfigurationComponent

public class CacheLoaderManagerConfig
extends AbstractNamedCacheConfigurationBean

Holds the configuration of the cache loader chain. ALL cache loaders should be defined using this class, adding individual cache loaders to the chain by calling addCacheLoaderConfig(org.infinispan.loaders.CacheLoaderConfig)

Note that class CacheLoaderManagerConfig contains JAXB annotations. These annotations determine how XML configuration files are read into instances of configuration class hierarchy as well as they provide meta data for configuration file XML schema generation. Please modify these annotations and Java element types they annotate with utmost understanding and care.

Since:
4.0
Author:
Manik Surtani (manik@jboss.org), Brian Stansberry, Vladimir Blagojevic, Galder Zamarreno
See Also:
Configuration reference, Serialized Form

Field Summary
protected  List<CacheLoaderConfig> cacheLoaderConfigs
           
protected  Boolean passivation
           
protected  Boolean preload
           
protected  Boolean shared
           
 
Fields inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
cr
 
Fields inherited from class org.infinispan.config.AbstractConfigurationBean
EMPTY_PROPERTIES, log, overriddenConfigurationElements
 
Constructor Summary
CacheLoaderManagerConfig()
           
 
Method Summary
 void accept(ConfigurationBeanVisitor v)
           
 void addCacheLoaderConfig(CacheLoaderConfig clc)
           
 CacheLoaderManagerConfig clone()
           
 boolean equals(Object obj)
           
 List<CacheLoaderConfig> getCacheLoaderConfigs()
           
 CacheLoaderConfig getFirstCacheLoaderConfig()
           
 int hashCode()
           
 Boolean isFetchPersistentState()
          Loops through all individual cache loader configs and checks if fetchPersistentState is set on any of them
 Boolean isPassivation()
           
 Boolean isPreload()
           
 Boolean isShared()
           
 void setCacheLoaderConfigs(List<CacheLoaderConfig> configs)
           
 void setPassivation(Boolean passivation)
           
 void setPreload(Boolean preload)
           
 void setShared(Boolean shared)
           
 String toString()
           
 boolean useChainingCacheLoader()
           
 
Methods inherited from class org.infinispan.config.AbstractNamedCacheConfigurationBean
hasComponentStarted, inject
 
Methods inherited from class org.infinispan.config.AbstractConfigurationBean
testImmutability, toTypedProperties, toTypedProperties, uc
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

passivation

protected Boolean passivation

preload

protected Boolean preload

shared

protected Boolean shared

cacheLoaderConfigs

protected List<CacheLoaderConfig> cacheLoaderConfigs
Constructor Detail

CacheLoaderManagerConfig

public CacheLoaderManagerConfig()
Method Detail

isPreload

public Boolean isPreload()

setPreload

public void setPreload(Boolean preload)

setPassivation

public void setPassivation(Boolean passivation)

isPassivation

public Boolean isPassivation()

setShared

public void setShared(Boolean shared)

isShared

public Boolean isShared()

addCacheLoaderConfig

public void addCacheLoaderConfig(CacheLoaderConfig clc)

getCacheLoaderConfigs

public List<CacheLoaderConfig> getCacheLoaderConfigs()

setCacheLoaderConfigs

public void setCacheLoaderConfigs(List<CacheLoaderConfig> configs)

getFirstCacheLoaderConfig

public CacheLoaderConfig getFirstCacheLoaderConfig()

isFetchPersistentState

public Boolean isFetchPersistentState()
Loops through all individual cache loader configs and checks if fetchPersistentState is set on any of them


useChainingCacheLoader

public boolean useChainingCacheLoader()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

accept

public void accept(ConfigurationBeanVisitor v)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

clone

public CacheLoaderManagerConfig clone()
                               throws CloneNotSupportedException
Specified by:
clone in interface CloneableConfigurationComponent
Overrides:
clone in class AbstractNamedCacheConfigurationBean
Throws:
CloneNotSupportedException

Google Analytics

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