Package org.ehcache.config
Interface Configuration
public interface Configuration
Represents the configuration for a
CacheManager.
Implementations are expected to be read-only.
-
Method Summary
Modifier and TypeMethodDescriptiondefault FluentConfigurationBuilder<?>derive()Creates a builder seeded with this configuration.Map<String,CacheConfiguration<?, ?>> Mapping of aliases toCacheConfigurations, used to configure theCaches managed by theCacheManager.TheClassLoaderfor theCacheManager.Returns a mapping ofResourceTypes toResourcePools, for all configured shared resource pools
-
Method Details
-
getCacheConfigurations
Map<String,CacheConfiguration<?, getCacheConfigurations()?>> Mapping of aliases toCacheConfigurations, used to configure theCaches managed by theCacheManager.The map must not be
nullbut can be empty. It must be unmodifiable.- Returns:
- a map of aliases to cache configurations
-
getServiceCreationConfigurations
Collection<ServiceCreationConfiguration<?,?>> getServiceCreationConfigurations()ServiceCreationConfigurationinitially used to bootstrap theCacheManagerand itsCaches.The collection must not be null but can be empty. Also it must be unmodifiable.
- Returns:
- a collection of service creations configurations
-
getClassLoader
ClassLoader getClassLoader()TheClassLoaderfor theCacheManager.This
ClassLoaderwill be used to instantiate cache manager level services and forCaches that do not have a specificClassLoader.The
ClassLoadermust not be null.- Returns:
- the cache manager
ClassLoader
-
derive
Creates a builder seeded with this configuration.The default implementation throws
UnsupportedOperationExceptionto indicate that configuration derivation is not supported.- Returns:
- a configuration builder
- Throws:
UnsupportedOperationException- if configuration derivation is not supported- See Also:
-