|
eXo Kernel :: Cache Extension :: Infinispan Implementation 2.5.1-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.cache.impl.infinispan.ExoCacheFactoryImpl
public class ExoCacheFactoryImpl
This class is the Infinispan implementation of the ExoCacheFactory
| Constructor Summary | |
|---|---|
ExoCacheFactoryImpl(ExoContainerContext ctx,
InitParams params,
ConfigurationManager configManager)
|
|
ExoCacheFactoryImpl(ExoContainerContext ctx,
InitParams params,
ConfigurationManager configManager,
DistributedCacheManager dcm)
|
|
ExoCacheFactoryImpl(ExoContainerContext ctx,
String cacheConfigTemplate,
ConfigurationManager configManager,
DistributedCacheManager dcm)
|
|
| Method Summary | |
|---|---|
void |
addConfig(ExoCacheFactoryConfigPlugin plugin)
Add a list of custom configuration to register |
void |
addCreator(ExoCacheCreatorPlugin plugin)
Add a list of creators to register |
ExoCache<Serializable,Object> |
createCache(ExoCacheConfig config)
To create a new cache instance according to the given configuration, we follow the steps below: We first try to find if a specific location of the cache configuration has been defined thanks to an external component plugin of type ExoCacheFactoryConfigPlugin. |
protected ExoCacheCreator |
getExoCacheCreator(ExoCacheConfig config)
Returns the most relevant ExoCacheCreator according to the give configuration |
protected void |
resetConfiguration(org.infinispan.configuration.cache.ConfigurationBuilder confBuilder)
Clean the configuration template to prevent conflicts |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExoCacheFactoryImpl(ExoContainerContext ctx,
InitParams params,
ConfigurationManager configManager)
throws ExoCacheInitException
ExoCacheInitException
public ExoCacheFactoryImpl(ExoContainerContext ctx,
InitParams params,
ConfigurationManager configManager,
DistributedCacheManager dcm)
throws ExoCacheInitException
ExoCacheInitException
public ExoCacheFactoryImpl(ExoContainerContext ctx,
String cacheConfigTemplate,
ConfigurationManager configManager,
DistributedCacheManager dcm)
throws ExoCacheInitException
ExoCacheInitException| Method Detail |
|---|
public ExoCache<Serializable,Object> createCache(ExoCacheConfig config)
throws ExoCacheInitException
createCache in interface ExoCacheFactoryExoCacheInitExceptionpublic void addCreator(ExoCacheCreatorPlugin plugin)
plugin - the plugin that contains the creatorspublic void addConfig(ExoCacheFactoryConfigPlugin plugin)
plugin - the plugin that contains the configsprotected ExoCacheCreator getExoCacheCreator(ExoCacheConfig config)
protected void resetConfiguration(org.infinispan.configuration.cache.ConfigurationBuilder confBuilder)
|
eXo Kernel :: Cache Extension :: Infinispan Implementation 2.5.1-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||