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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description BlueOceanConfigFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ExtensionList<BlueOceanConfigFactory>
all()
abstract BlueOceanConfig
getConfig()
Returns Blue Ocean configurationstatic <T> T
getConfig(String key, Class<T> type)
Looks up for an specific config key on the availableBlueOceanConfigFactory
implementations
-
-
-
Method Detail
-
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 availableBlueOceanConfigFactory
implementations- Parameters:
key
- the key to look fortype
- the type of the value- Returns:
- the value for the requested key
-
all
public static ExtensionList<BlueOceanConfigFactory> all()
-
-