CONFIG
- type of an external configpublic interface ExternalConfigurationModel<CONFIG> extends ExtendedConfig
Modifier and Type | Method and Description |
---|---|
<T> T |
as(String name,
Class<T> clazz)
Get value of a property as a definite type
property shall exist in order for this method to be used.
|
CONFIG |
getConfig()
Obtain config object
|
<T> Optional<T> |
getOptionalProperty(String name,
Class<T> clazz)
Get value of a property as a definite type
property may not exist, an empty Optional object is returned in case of an empty property
|
ExternalConfigurationModel |
mergeProperties(Map<String,Object> inputProperties)
Merge properties from other (found) external configuration.
|
isProperty
getClasses, getContracts, getInstances, getProperties, getProperty, getPropertyNames, getRuntimeType, isEnabled, isEnabled, isRegistered, isRegistered
<T> T as(String name, Class<T> clazz)
T
- type of an expected valuename
- property nameclazz
- class type of an expected value<T> Optional<T> getOptionalProperty(String name, Class<T> clazz)
T
- type of an expected valuename
- property nameclazz
- class type of an expected valueExternalConfigurationModel mergeProperties(Map<String,Object> inputProperties)
inputProperties
- those properties will be merged into oursCONFIG getConfig()
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.