Package org.ehcache.config
Interface Configuration
-
public interface ConfigurationRepresents the configuration for aCacheManager.Implementations are expected to be read-only.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default FluentConfigurationBuilder<?>derive()Creates a builder seeded with this configuration.java.util.Map<java.lang.String,CacheConfiguration<?,?>>getCacheConfigurations()Mapping of aliases toCacheConfigurations, used to configure theCaches managed by theCacheManager.java.lang.ClassLoadergetClassLoader()TheClassLoaderfor theCacheManager.java.util.Collection<ServiceCreationConfiguration<?,?>>getServiceCreationConfigurations()
-
-
-
Method Detail
-
getCacheConfigurations
java.util.Map<java.lang.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
java.util.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
java.lang.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
default FluentConfigurationBuilder<?> 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:
java.lang.UnsupportedOperationException- if configuration derivation is not supported- See Also:
FluentConfigurationBuilder
-
-