Class ImmutableCommonConfig
java.lang.Object
org.glassfish.jersey.model.internal.CommonConfig
org.glassfish.jersey.model.internal.ImmutableCommonConfig
- All Implemented Interfaces:
Configurable<FeatureContext>
,Configuration
,FeatureContext
,ExtendedConfig
Immutable runtime configuration.
- Author:
- Marek Potociar
-
Constructor Summary
ConstructorDescriptionImmutableCommonConfig
(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. -
Method Summary
Modifier and TypeMethodDescriptionloadFrom
(Configuration config) Load the internal configuration state from an externally provided configuration state.setProperties
(Map<String, ?> properties) Set the configured properties to the provided map of properties.Methods inherited from class org.glassfish.jersey.model.internal.CommonConfig
addProperties, configureAutoDiscoverableProviders, configureMetaProviders, equals, getClasses, getComponentBag, getConfiguration, getContracts, getInstances, getModelEnhancer, getProperties, getProperty, getPropertyNames, getRuntimeType, hashCode, isEnabled, isEnabled, isProperty, isRegistered, isRegistered
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.ws.rs.core.Configuration
hasProperty
-
Constructor Details
-
ImmutableCommonConfig
Create new immutable copy of the original runtime configuration with a custom modification error message.- Parameters:
config
- original runtime configuration.modificationErrorMessage
- custom modification error message.
-
ImmutableCommonConfig
Create new immutable copy of the original runtime configuration.- Parameters:
config
- original runtime configuration.
-
-
Method Details
-
property
- Specified by:
property
in interfaceConfigurable<FeatureContext>
- Overrides:
property
in classCommonConfig
-
setProperties
Description copied from class:CommonConfig
Set the configured properties to the provided map of properties.- Overrides:
setProperties
in classCommonConfig
- Parameters:
properties
- new map of properties to be set.- Returns:
- updated configuration instance.
-
register
- Specified by:
register
in interfaceConfigurable<FeatureContext>
- Overrides:
register
in classCommonConfig
-
register
- Specified by:
register
in interfaceConfigurable<FeatureContext>
- Overrides:
register
in classCommonConfig
-
register
- Specified by:
register
in interfaceConfigurable<FeatureContext>
- Overrides:
register
in classCommonConfig
-
register
- Specified by:
register
in interfaceConfigurable<FeatureContext>
- Overrides:
register
in classCommonConfig
-
register
- Specified by:
register
in interfaceConfigurable<FeatureContext>
- Overrides:
register
in classCommonConfig
-
register
- Specified by:
register
in interfaceConfigurable<FeatureContext>
- Overrides:
register
in classCommonConfig
-
register
- Specified by:
register
in interfaceConfigurable<FeatureContext>
- Overrides:
register
in classCommonConfig
-
register
- Specified by:
register
in interfaceConfigurable<FeatureContext>
- Overrides:
register
in classCommonConfig
-
loadFrom
Description copied from class:CommonConfig
Load the internal configuration state from an externally provided configuration state. Calling this method effectively replaces existing configuration state of the instance with the state represented by the externally provided configuration. If the features, auto-discoverables of given config has been already configured then this method will make sure to not configure them for the second time.- Overrides:
loadFrom
in classCommonConfig
- Parameters:
config
- external configuration state to replace the configuration of this configurable instance.- Returns:
- the updated common configuration instance.
-