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() |
RuntimeType |
getRuntimeType() |
Object |
getValueFromConfig(String name)
Allows ancestors to work with native configuration providers
|
boolean |
isEnabled(Class<? extends Feature> featureClass) |
boolean |
isEnabled(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 RuntimeType getRuntimeType()
getRuntimeType in interface Configurationpublic Map<String,Object> getProperties()
getProperties in interface Configurationpublic Object getProperty(String name)
getProperty in interface Configurationpublic Collection<String> getPropertyNames()
getPropertyNames in interface Configurationpublic ExternalConfigurationModel mergeProperties(Map<String,Object> inputProperties)
mergeProperties in interface ExternalConfigurationModel<CONFIG extends org.eclipse.microprofile.config.Config>public boolean isEnabled(Feature feature)
isEnabled in interface Configurationpublic boolean isEnabled(Class<? extends Feature> featureClass)
isEnabled in interface Configurationpublic boolean isRegistered(Object component)
isRegistered in interface Configurationpublic boolean isRegistered(Class<?> componentClass)
isRegistered in interface Configurationpublic Map<Class<?>,Integer> getContracts(Class<?> componentClass)
getContracts in interface Configurationpublic Set<Class<?>> getClasses()
getClasses in interface Configurationpublic Set<Object> getInstances()
getInstances in interface ConfigurationCopyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.