Package org.jboss.resteasy.spi.config
Class DefaultConfiguration
java.lang.Object
org.jboss.resteasy.spi.config.DefaultConfiguration
- All Implemented Interfaces:
Configuration
A default configuration which searches for a property in the following order:
- System properties
- Environment variables
ResteasyConfiguration
- Author:
- James R. Perkins
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new configuration .Creates a new configuration which uses the configuration to resolve the values. -
Method Summary
-
Constructor Details
-
DefaultConfiguration
public DefaultConfiguration()Creates a new configuration . -
DefaultConfiguration
Creates a new configuration which uses the configuration to resolve the values.- Parameters:
config- the resolver
-
-
Method Details
-
getOptionalValue
Description copied from interface:ConfigurationReturns the resolved value for the specified type of the named property.- Specified by:
getOptionalValuein interfaceConfiguration- 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
-
getValue
Description copied from interface:ConfigurationReturns the resolved value for the specified type of the named property.- Specified by:
getValuein interfaceConfiguration- Type Parameters:
T- the property type- Parameters:
name- the name of the parametertype- the type to convert the value to- Returns:
- the resolved value
-