CONFIG - type of MP configuration implpublic class ConfigurationModel<CONFIG extends org.eclipse.microprofile.config.Config> extends Object implements ExternalConfigurationModel<CONFIG>
| Constructor and Description |
|---|
ConfigurationModel(CONFIG config) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
as(String name,
Class<T> clazz) |
Set<Class<?>> |
getClasses() |
CONFIG |
getConfig() |
Map<Class<?>,Integer> |
getContracts(Class<?> componentClass) |
Set<Object> |
getInstances() |
<T> Optional<T> |
getOptionalProperty(String name,
Class<T> clazz) |
Map<String,Object> |
getProperties() |
Object |
getProperty(String name) |
Collection<String> |
getPropertyNames() |
javax.ws.rs.RuntimeType |
getRuntimeType() |
Object |
getValueFromConfig(String name)
Allows ancestors to work with native configuration providers
|
boolean |
isEnabled(Class<? extends javax.ws.rs.core.Feature> featureClass) |
boolean |
isEnabled(javax.ws.rs.core.Feature feature) |
boolean |
isProperty(String name) |
boolean |
isRegistered(Class<?> componentClass) |
boolean |
isRegistered(Object component) |
ExternalConfigurationModel |
mergeProperties(Map<String,Object> inputProperties) |
public ConfigurationModel(CONFIG config)
public <T> T as(String name, Class<T> clazz)
as in interface ExternalConfigurationModel<CONFIG extends org.eclipse.microprofile.config.Config>public <T> Optional<T> getOptionalProperty(String name, Class<T> clazz)
getOptionalProperty in interface ExternalConfigurationModel<CONFIG extends org.eclipse.microprofile.config.Config>public CONFIG getConfig()
getConfig in interface ExternalConfigurationModel<CONFIG extends org.eclipse.microprofile.config.Config>public boolean isProperty(String name)
isProperty in interface ExtendedConfigpublic Object getValueFromConfig(String name)
name - property namepublic javax.ws.rs.RuntimeType getRuntimeType()
getRuntimeType in interface javax.ws.rs.core.Configurationpublic Map<String,Object> getProperties()
getProperties in interface javax.ws.rs.core.Configurationpublic Object getProperty(String name)
getProperty in interface javax.ws.rs.core.Configurationpublic Collection<String> getPropertyNames()
getPropertyNames in interface javax.ws.rs.core.Configurationpublic ExternalConfigurationModel mergeProperties(Map<String,Object> inputProperties)
mergeProperties in interface ExternalConfigurationModel<CONFIG extends org.eclipse.microprofile.config.Config>public boolean isEnabled(javax.ws.rs.core.Feature feature)
isEnabled in interface javax.ws.rs.core.Configurationpublic boolean isEnabled(Class<? extends javax.ws.rs.core.Feature> featureClass)
isEnabled in interface javax.ws.rs.core.Configurationpublic boolean isRegistered(Object component)
isRegistered in interface javax.ws.rs.core.Configurationpublic boolean isRegistered(Class<?> componentClass)
isRegistered in interface javax.ws.rs.core.Configurationpublic Map<Class<?>,Integer> getContracts(Class<?> componentClass)
getContracts in interface javax.ws.rs.core.Configurationpublic Set<Class<?>> getClasses()
getClasses in interface javax.ws.rs.core.ConfigurationCopyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.