public class ImmutableCommonConfig extends CommonConfig
Constructor and Description |
---|
ImmutableCommonConfig(CommonConfig config)
Create new immutable copy of the original runtime configuration.
|
ImmutableCommonConfig(CommonConfig config,
String modificationErrorMessage)
Create new immutable copy of the original runtime configuration
with a custom modification error message.
|
Modifier and Type | Method and Description |
---|---|
CommonConfig |
loadFrom(Configuration config)
Load the internal configuration state from an externally provided configuration state.
|
ImmutableCommonConfig |
property(String name,
Object value) |
ImmutableCommonConfig |
register(Class<?> componentClass) |
ImmutableCommonConfig |
register(Class<?> componentClass,
Class<?>... contracts) |
ImmutableCommonConfig |
register(Class<?> componentClass,
int bindingPriority) |
CommonConfig |
register(Class<?> componentClass,
Map<Class<?>,Integer> contracts) |
ImmutableCommonConfig |
register(Object component) |
ImmutableCommonConfig |
register(Object component,
Class<?>... contracts) |
ImmutableCommonConfig |
register(Object component,
int bindingPriority) |
CommonConfig |
register(Object component,
Map<Class<?>,Integer> contracts) |
ImmutableCommonConfig |
setProperties(Map<String,?> properties)
Set the configured properties to the provided map of properties.
|
addProperties, configureAutoDiscoverableProviders, configureMetaProviders, equals, getClasses, getComponentBag, getConfiguration, getContracts, getInstances, getModelEnhancer, getProperties, getProperty, getPropertyNames, getRuntimeType, hashCode, isEnabled, isEnabled, isProperty, isRegistered, isRegistered
public ImmutableCommonConfig(CommonConfig config, String modificationErrorMessage)
config
- original runtime configuration.modificationErrorMessage
- custom modification error message.public ImmutableCommonConfig(CommonConfig config)
config
- original runtime configuration.public ImmutableCommonConfig property(String name, Object value)
property
in interface Configurable<FeatureContext>
property
in class CommonConfig
public ImmutableCommonConfig setProperties(Map<String,?> properties)
CommonConfig
setProperties
in class CommonConfig
properties
- new map of properties to be set.public ImmutableCommonConfig register(Class<?> componentClass)
register
in interface Configurable<FeatureContext>
register
in class CommonConfig
public ImmutableCommonConfig register(Class<?> componentClass, int bindingPriority)
register
in interface Configurable<FeatureContext>
register
in class CommonConfig
public ImmutableCommonConfig register(Class<?> componentClass, Class<?>... contracts)
register
in interface Configurable<FeatureContext>
register
in class CommonConfig
public CommonConfig register(Class<?> componentClass, Map<Class<?>,Integer> contracts)
register
in interface Configurable<FeatureContext>
register
in class CommonConfig
public ImmutableCommonConfig register(Object component)
register
in interface Configurable<FeatureContext>
register
in class CommonConfig
public ImmutableCommonConfig register(Object component, int bindingPriority)
register
in interface Configurable<FeatureContext>
register
in class CommonConfig
public ImmutableCommonConfig register(Object component, Class<?>... contracts)
register
in interface Configurable<FeatureContext>
register
in class CommonConfig
public CommonConfig register(Object component, Map<Class<?>,Integer> contracts)
register
in interface Configurable<FeatureContext>
register
in class CommonConfig
public CommonConfig loadFrom(Configuration config)
CommonConfig
loadFrom
in class CommonConfig
config
- external configuration state to replace the configuration of this configurable instance.Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.