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
CacheConfiguration s, used to configure the Cache s
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()
CacheConfiguration
s, used to configure the Cache
s
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 Cache
s.
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 Cache
s that do not have a specific ClassLoader
.
The ClassLoader
must not be null.
ClassLoader
default FluentConfigurationBuilder<?> derive()
The default implementation throws UnsupportedOperationException
to indicate that configuration derivation
is not supported.
java.lang.UnsupportedOperationException
- if configuration derivation is not supportedFluentConfigurationBuilder