public class ImmutableCommonConfig extends CommonConfig
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
errorMessage |
Constructor and Description |
---|
ImmutableCommonConfig(CommonConfig config)
Create new immutable copy of the original runtime configuration.
|
ImmutableCommonConfig(CommonConfig config,
java.lang.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(javax.ws.rs.core.Configuration config)
Load the internal configuration state from an externally provided configuration state.
|
ImmutableCommonConfig |
property(java.lang.String name,
java.lang.Object value) |
ImmutableCommonConfig |
register(java.lang.Class<?> componentClass) |
ImmutableCommonConfig |
register(java.lang.Class<?> componentClass,
java.lang.Class<?>... contracts) |
ImmutableCommonConfig |
register(java.lang.Class<?> componentClass,
int bindingPriority) |
CommonConfig |
register(java.lang.Class<?> componentClass,
java.util.Map<java.lang.Class<?>,java.lang.Integer> contracts) |
ImmutableCommonConfig |
register(java.lang.Object component) |
ImmutableCommonConfig |
register(java.lang.Object component,
java.lang.Class<?>... contracts) |
ImmutableCommonConfig |
register(java.lang.Object component,
int bindingPriority) |
CommonConfig |
register(java.lang.Object component,
java.util.Map<java.lang.Class<?>,java.lang.Integer> contracts) |
ImmutableCommonConfig |
setProperties(java.util.Map<java.lang.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, java.lang.String modificationErrorMessage)
config
- original runtime configuration.modificationErrorMessage
- custom modification error message.public ImmutableCommonConfig(CommonConfig config)
config
- original runtime configuration.public ImmutableCommonConfig property(java.lang.String name, java.lang.Object value)
property
in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
property
in class CommonConfig
public ImmutableCommonConfig setProperties(java.util.Map<java.lang.String,?> properties)
CommonConfig
setProperties
in class CommonConfig
properties
- new map of properties to be set.public ImmutableCommonConfig register(java.lang.Class<?> componentClass)
register
in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
register
in class CommonConfig
public ImmutableCommonConfig register(java.lang.Class<?> componentClass, int bindingPriority)
register
in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
register
in class CommonConfig
public ImmutableCommonConfig register(java.lang.Class<?> componentClass, java.lang.Class<?>... contracts)
register
in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
register
in class CommonConfig
public CommonConfig register(java.lang.Class<?> componentClass, java.util.Map<java.lang.Class<?>,java.lang.Integer> contracts)
register
in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
register
in class CommonConfig
public ImmutableCommonConfig register(java.lang.Object component)
register
in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
register
in class CommonConfig
public ImmutableCommonConfig register(java.lang.Object component, int bindingPriority)
register
in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
register
in class CommonConfig
public ImmutableCommonConfig register(java.lang.Object component, java.lang.Class<?>... contracts)
register
in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
register
in class CommonConfig
public CommonConfig register(java.lang.Object component, java.util.Map<java.lang.Class<?>,java.lang.Integer> contracts)
register
in interface javax.ws.rs.core.Configurable<javax.ws.rs.core.FeatureContext>
register
in class CommonConfig
public CommonConfig loadFrom(javax.ws.rs.core.Configuration config)
CommonConfig
loadFrom
in class CommonConfig
config
- external configuration state to replace the configuration of this configurable instance.