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
ConstructorsConstructorDescriptionImmutableCommonConfig(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, isRegisteredMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
propertyin interfaceConfigurable<FeatureContext>- Overrides:
propertyin classCommonConfig
-
setProperties
Description copied from class:CommonConfigSet the configured properties to the provided map of properties.- Overrides:
setPropertiesin classCommonConfig- Parameters:
properties- new map of properties to be set.- Returns:
- updated configuration instance.
-
register
- Specified by:
registerin interfaceConfigurable<FeatureContext>- Overrides:
registerin classCommonConfig
-
register
- Specified by:
registerin interfaceConfigurable<FeatureContext>- Overrides:
registerin classCommonConfig
-
register
- Specified by:
registerin interfaceConfigurable<FeatureContext>- Overrides:
registerin classCommonConfig
-
register
- Specified by:
registerin interfaceConfigurable<FeatureContext>- Overrides:
registerin classCommonConfig
-
register
- Specified by:
registerin interfaceConfigurable<FeatureContext>- Overrides:
registerin classCommonConfig
-
register
- Specified by:
registerin interfaceConfigurable<FeatureContext>- Overrides:
registerin classCommonConfig
-
register
- Specified by:
registerin interfaceConfigurable<FeatureContext>- Overrides:
registerin classCommonConfig
-
register
- Specified by:
registerin interfaceConfigurable<FeatureContext>- Overrides:
registerin classCommonConfig
-
loadFrom
Description copied from class:CommonConfigLoad 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:
loadFromin classCommonConfig- Parameters:
config- external configuration state to replace the configuration of this configurable instance.- Returns:
- the updated common configuration instance.
-