Interface ConfigurationFactory


public interface ConfigurationFactory
A factory which returns the Configuration.
Author:
James R. Perkins
  • Method Details

    • getInstance

      static ConfigurationFactory getInstance()
      Returns the factory for the environment. The factory with the lowest priority will be selected.
      Returns:
      the factory for the current environment
      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, if null 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