Package org.jboss.resteasy.spi.config
Interface Configuration
-
- All Known Implementing Classes:
DefaultConfiguration
public interface Configuration
- Author:
- James R. Perkins
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getOptionalValue
<T> Optional<T> getOptionalValue(String name, Class<T> type)
Returns the resolved value for the specified type of the named property.- Type Parameters:
T
- the property type- Parameters:
name
- the name of the parametertype
- the type to convert the value to- Returns:
- the resolved optional value
- Throws:
IllegalArgumentException
- if the type is not supported
-
getValue
<T> T getValue(String name, Class<T> type)
Returns the resolved value for the specified type of the named property.- Type Parameters:
T
- the property type- Parameters:
name
- the name of the parametertype
- the type to convert the value to- Returns:
- the resolved value
- Throws:
IllegalArgumentException
- if the type is not supportedNoSuchElementException
- if there is no property associated with the name
-
-