Class ConfigurationModel<CONFIG extends org.eclipse.microprofile.config.Config>
java.lang.Object
org.glassfish.jersey.microprofile.config.ConfigurationModel<CONFIG>
- Type Parameters:
CONFIG- type of MP configuration impl
- All Implemented Interfaces:
Configuration,ExtendedConfig,ExternalConfigurationModel<CONFIG>
public class ConfigurationModel<CONFIG extends org.eclipse.microprofile.config.Config>
extends Object
implements ExternalConfigurationModel<CONFIG>
Generic class which implements default properties provider's logic and wraps not used methods from ExtConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetContracts(Class<?> componentClass) <T> Optional<T>getOptionalProperty(String name, Class<T> clazz) getProperty(String name) getValueFromConfig(String name) Allows ancestors to work with native configuration providersbooleanbooleanbooleanisProperty(String name) booleanisRegistered(Class<?> componentClass) booleanisRegistered(Object component) mergeProperties(Map<String, Object> inputProperties) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.ws.rs.core.Configuration
hasProperty
-
Constructor Details
-
ConfigurationModel
-
-
Method Details
-
as
- Specified by:
asin interfaceExternalConfigurationModel<CONFIG extends org.eclipse.microprofile.config.Config>
-
getOptionalProperty
- Specified by:
getOptionalPropertyin interfaceExternalConfigurationModel<CONFIG extends org.eclipse.microprofile.config.Config>
-
getConfig
- Specified by:
getConfigin interfaceExternalConfigurationModel<CONFIG extends org.eclipse.microprofile.config.Config>
-
isProperty
- Specified by:
isPropertyin interfaceExtendedConfig
-
getValueFromConfig
Allows ancestors to work with native configuration providers- Parameters:
name- property name- Returns:
- property's value if any
-
getRuntimeType
- Specified by:
getRuntimeTypein interfaceConfiguration
-
getProperties
- Specified by:
getPropertiesin interfaceConfiguration
-
getProperty
- Specified by:
getPropertyin interfaceConfiguration
-
getPropertyNames
- Specified by:
getPropertyNamesin interfaceConfiguration
-
mergeProperties
- Specified by:
mergePropertiesin interfaceExternalConfigurationModel<CONFIG extends org.eclipse.microprofile.config.Config>
-
isEnabled
- Specified by:
isEnabledin interfaceConfiguration
-
isEnabled
- Specified by:
isEnabledin interfaceConfiguration
-
isRegistered
- Specified by:
isRegisteredin interfaceConfiguration
-
isRegistered
- Specified by:
isRegisteredin interfaceConfiguration
-
getContracts
- Specified by:
getContractsin interfaceConfiguration
-
getClasses
- Specified by:
getClassesin interfaceConfiguration
-
getInstances
- Specified by:
getInstancesin interfaceConfiguration
-