Class AbstractConfigProviderImpl

java.lang.Object
hudson.model.Descriptor<Config>
org.jenkinsci.lib.configprovider.ConfigProvider
org.jenkinsci.lib.configprovider.AbstractConfigProviderImpl
All Implemented Interfaces:
ExtensionPoint, Saveable, OnMaster
Direct Known Subclasses:
AbstractConfigProvider, AbstractCustomProvider, AbstractMavenSettingsProvider, AbstractPropertiesProvider, GroovyScript.GroovyConfigProvider, JsonConfig.JsonConfigProvider, MavenToolchainsConfig.MavenToolchainsConfigProvider, XmlConfig.XmlConfigProvider

public abstract class AbstractConfigProviderImpl extends ConfigProvider
Partial default implementation of ConfigProvider.
Author:
Kohsuke Kawaguchi
  • Field Details

  • Constructor Details

    • AbstractConfigProviderImpl

      public AbstractConfigProviderImpl()
  • Method Details

    • getConfigs

      @Deprecated public Map<String,Config> getConfigs()
      Deprecated.
      only used for data migration
      See Also:
    • convert

      @Deprecated public <T extends Config> T convert(Config config)
      Deprecated.
      Only used to convert data from the old (< 1.5) to the new (≥ 1.5) storage format. New implementations of this extension point do not need to implement this.
      Type Parameters:
      T - expected type of the returned configuration item.
      Parameters:
      config - the configuration to convert
    • getProviderId

      public String getProviderId()
      Description copied from class: ConfigProvider
      An ID uniquely identifying this provider, the id of each Config must start with this ID separated by a '.'!
      Specified by:
      getProviderId in class ConfigProvider
      Returns:
      the unique id for this provider.
    • save

      public void save()
      Saves the configuration info to the disk.
      Specified by:
      save in interface Saveable
      Overrides:
      save in class Descriptor<Config>
    • load

      public void load()
      Overridden for backward compatibility to let subtype customize the file name.
      Overrides:
      load in class Descriptor<Config>
    • getConfigXml

      @Deprecated protected XmlFile getConfigXml()
      Deprecated.
    • getXmlFileName

      @Deprecated protected String getXmlFileName()
      Deprecated.
    • clearOldDataStorage

      public void clearOldDataStorage()
      Specified by:
      clearOldDataStorage in class ConfigProvider