public interface Configuration
CacheManager.
Implementations are expected to be read-only.
| Modifier and Type | Method and Description |
|---|---|
default FluentConfigurationBuilder<?> |
derive()
Creates a builder seeded with this configuration.
|
java.util.Map<java.lang.String,CacheConfiguration<?,?>> |
getCacheConfigurations()
Mapping of aliases to
CacheConfigurations, used to configure the Caches
managed by the CacheManager. |
java.lang.ClassLoader |
getClassLoader()
The
ClassLoader for the CacheManager. |
java.util.Collection<ServiceCreationConfiguration<?,?>> |
getServiceCreationConfigurations()
|
java.util.Map<java.lang.String,CacheConfiguration<?,?>> getCacheConfigurations()
CacheConfigurations, used to configure the Caches
managed by the CacheManager.
The map must not be null but can be empty. It must be unmodifiable.
java.util.Collection<ServiceCreationConfiguration<?,?>> getServiceCreationConfigurations()
ServiceCreationConfiguration initially used to bootstrap the CacheManager
and its Caches.
The collection must not be null but can be empty. Also it must be unmodifiable.
java.lang.ClassLoader getClassLoader()
ClassLoader for the CacheManager.
This ClassLoader will be used to instantiate cache manager level services
and for Caches that do not have a specific ClassLoader.
The ClassLoader must not be null.
ClassLoaderdefault FluentConfigurationBuilder<?> derive()
The default implementation throws UnsupportedOperationException to indicate that configuration derivation
is not supported.
java.lang.UnsupportedOperationException - if configuration derivation is not supportedFluentConfigurationBuilder