Enum ConfigurationOption

java.lang.Object
java.lang.Enum<ConfigurationOption>
org.jboss.resteasy.core.se.ConfigurationOption
All Implemented Interfaces:
Serializable, Comparable<ConfigurationOption>

public enum ConfigurationOption extends Enum<ConfigurationOption>
Configurations options for configuring an SeBootstrap.Instance.
Author:
James R. Perkins
  • Enum Constant Details

  • Method Details

    • values

      public static ConfigurationOption[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ConfigurationOption valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static ConfigurationOption of(String key)
    • getValue

      public <T> T getValue(jakarta.ws.rs.SeBootstrap.Configuration configuration)
      Resolves the value from the configuration
      Type Parameters:
      T - the type for the value
      Parameters:
      configuration - the configuration the value is resolved from
      Returns:
      the value or the default value which may be null
    • key

      public String key()
      The key for the property.
      Returns:
      the key for the property
    • defaultValue

      public <T> T defaultValue()
      The default value.
      Type Parameters:
      T - the type of the value
      Returns:
      the default value
    • expectedType

      public <T> Class<? extends T> expectedType()
      The expected type.
      Type Parameters:
      T - the type of the value
      Returns:
      the expected type
    • validate

      public void validate(Object value)
      Validates the value can be assigned to this configuration option.
      Parameters:
      value - the value to validate
      Throws:
      IllegalArgumentException - if the value cannot be assigned to this configuration option
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ConfigurationOption>