Interface ExoCacheCreator
-
- All Known Implementing Classes:
GenericExoCacheCreator
public interface ExoCacheCreatorThis class is used to create the cache according to the given configurationExoCacheConfig- Version:
- $Id$
- Author:
- Nicolas Filotto
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.exoplatform.services.cache.ExoCache<Serializable,Object>create(org.exoplatform.services.cache.ExoCacheConfig config, org.infinispan.configuration.cache.ConfigurationBuilder confBuilder, Callable<org.infinispan.Cache<Serializable,Object>> cacheGetter)Creates an eXo cache according to the given configurationExoCacheConfigClass<? extends org.exoplatform.services.cache.ExoCacheConfig>getExpectedConfigType()Returns the type ofExoCacheConfigexpected by the creatorSet<String>getExpectedImplementations()Returns a set of all the implementations expected by the creator.
-
-
-
Method Detail
-
create
org.exoplatform.services.cache.ExoCache<Serializable,Object> create(org.exoplatform.services.cache.ExoCacheConfig config, org.infinispan.configuration.cache.ConfigurationBuilder confBuilder, Callable<org.infinispan.Cache<Serializable,Object>> cacheGetter) throws org.exoplatform.services.cache.ExoCacheInitException
Creates an eXo cache according to the given configurationExoCacheConfig- Parameters:
config- the configuration of the cache to applyconfBuilder- the configuration builder of the infinispan cachecacheGetter- aCallableinstance from which we can get the cache- Throws:
org.exoplatform.services.cache.ExoCacheInitException- if an exception happens while initializing the cache
-
getExpectedConfigType
Class<? extends org.exoplatform.services.cache.ExoCacheConfig> getExpectedConfigType()
Returns the type ofExoCacheConfigexpected by the creator- Returns:
- the expected type
-
-