javax.cache.spi
Interface CacheManagerFactoryProvider


public interface CacheManagerFactoryProvider

Interface that should be implemented by a CacheManager factory provider. It is invoked by the CacheManagerFactory class to create a CacheManager

Since:
1.0
Author:
Yannis Cosmadopoulos
See Also:
CacheManagerFactory

Method Summary
 CacheManager createCacheManager(String name)
          Called by the CacheManagerFactory class when a new CacheManager needs to be created.
 boolean isSupported(OptionalFeature optionalFeature)
          Indicates whether a optional feature is supported by this implementation
 

Method Detail

createCacheManager

CacheManager createCacheManager(String name)
Called by the CacheManagerFactory class when a new CacheManager needs to be created.

An implementation of this interface must have a public no-arg constructor.

The name may be used to associate a configuration with this CacheManager instance.

Parameters:
name - the name of this cache manager
Returns:
a new cache manager.
Throws:
NullPointerException - if name is null

isSupported

boolean isSupported(OptionalFeature optionalFeature)
Indicates whether a optional feature is supported by this implementation

Parameters:
optionalFeature - the feature to check for
Returns:
true if the feature is supported


Copyright © 2011. All Rights Reserved.