org.exoplatform.services.cache.impl.jboss
Interface ExoCacheCreator

All Known Implementing Classes:
FIFOExoCacheCreator, LFUExoCacheCreator, LRUExoCacheCreator, MRUExoCacheCreator

public interface ExoCacheCreator

This class is used to create the cache according to the given configuration ExoCacheConfig Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com 20 juil. 2009


Method Summary
 ExoCache create(ExoCacheConfig config, org.jboss.cache.TreeCache cache)
          Creates an eXo cache according to the given configuration ExoCacheConfig
 Class<? extends ExoCacheConfig> getExpectedConfigType()
          Returns the type of ExoCacheConfig expected by the creator
 String getExpectedImplementation()
          Returns the name of the implementation expected by the creator.
 

Method Detail

create

ExoCache create(ExoCacheConfig config,
                org.jboss.cache.TreeCache cache)
                throws ExoCacheInitException
Creates an eXo cache according to the given configuration ExoCacheConfig

Parameters:
config - the configuration of the cache to apply
cache - the cache to initialize
Throws:
ExoCacheInitException - if an exception happens while initializing the cache

getExpectedConfigType

Class<? extends ExoCacheConfig> getExpectedConfigType()
Returns the type of ExoCacheConfig expected by the creator

Returns:
the expected type

getExpectedImplementation

String getExpectedImplementation()
Returns the name of the implementation expected by the creator. This is mainly used to be backward compatible

Returns:
the expected by the creator


Copyright © 2009 eXo Platform SAS. All Rights Reserved.