Class BlueOceanConfigFactory

java.lang.Object
io.jenkins.blueocean.rest.factory.BlueOceanConfigFactory
All Implemented Interfaces:
ExtensionPoint

public abstract class BlueOceanConfigFactory extends Object implements ExtensionPoint
Blue Ocean configuration factory which allows different extensions to return configuration values.
  • Constructor Details

    • BlueOceanConfigFactory

      public BlueOceanConfigFactory()
  • Method Details

    • getConfig

      @NonNull public abstract BlueOceanConfig getConfig()
      Returns Blue Ocean configuration
      Returns:
      the current configuration
    • getConfig

      @CheckForNull public static <T> T getConfig(String key, Class<T> type)
      Looks up for an specific config key on the available BlueOceanConfigFactory implementations
      Parameters:
      key - the key to look for
      type - the type of the value
      Returns:
      the value for the requested key
    • all

      public static ExtensionList<BlueOceanConfigFactory> all()