Package org.jboss.resteasy.spi.config
Interface ConfigurationFactory
-
- All Known Implementing Classes:
DefaultConfigurationFactory
public interface ConfigurationFactoryA 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 ConfigurationgetConfiguration()Returns the configuration for the current context.default ConfigurationgetConfiguration(ResteasyConfiguration config)Returns the configuration for the current context.static ConfigurationFactorygetInstance()Returns a new factory.intpriority()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, ifnulla 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
-
-