public interface Configuration
Modifier and Type | Method and Description |
---|---|
<T> Optional<T> |
getOptionalValue(String name,
Class<T> type)
Returns the resolved value for the specified type of the named property.
|
<T> T |
getValue(String name,
Class<T> type)
Returns the resolved value for the specified type of the named property.
|
<T> Optional<T> getOptionalValue(String name, Class<T> type)
T
- the property typename
- the name of the parametertype
- the type to convert the value toIllegalArgumentException
- if the type is not supported<T> T getValue(String name, Class<T> type)
T
- the property typename
- the name of the parametertype
- the type to convert the value toIllegalArgumentException
- if the type is not supportedNoSuchElementException
- if there is no property associated with the nameCopyright © 2021 JBoss by Red Hat. All rights reserved.