Package org.jboss.resteasy.spi.config
Interface ConfigurationFactory
-
- All Known Implementing Classes:
DefaultConfigurationFactory
public interface ConfigurationFactory
A factory which returns theConfiguration
.- Author:
- James R. Perkins
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Configuration
getConfiguration()
Returns the configuration for the current context.default Configuration
getConfiguration(ResteasyConfiguration config)
Returns the configuration for the current context.static ConfigurationFactory
getInstance()
Returns a new factory.int
priority()
The ranking priority for the this factory.
-
-
-
Method Detail
-
getInstance
static ConfigurationFactory getInstance()
Returns a new factory. The factory with the lowest priority will be selected.- Returns:
- the new factory
- Throws:
RuntimeException
- if the service loader could not find a factory
-
getConfiguration
default Configuration getConfiguration()
Returns the configuration for the current context.- Returns:
- the configuration
-
getConfiguration
default Configuration getConfiguration(ResteasyConfiguration config)
Returns the configuration for the current context.- Parameters:
config
- a configuration used to resolve default values, ifnull
a default resolver will be used- Returns:
- the configuration
-
priority
int priority()
The ranking priority for the this factory. The lowest priority will be the one selected.- Returns:
- the priority
-
-