Class Configuration

java.lang.Object
com.thoughtworks.go.plugin.api.config.Configuration
All Implemented Interfaces:
PluginPreference
Direct Known Subclasses:
PackageConfiguration, RepositoryConfiguration, TaskConfig

@Deprecated public class Configuration extends Object implements PluginPreference
Deprecated.
Container for holding configuration properties for a package or repository
  • Constructor Details

    • Configuration

      public Configuration()
      Deprecated.
  • Method Details

    • add

      public void add(Property property)
      Deprecated.
      Adds given property as configuration
      Parameters:
      property - this is the property to be added to the configuration
    • get

      public Property get(String key)
      Deprecated.
      Gets property for a given property key
      Parameters:
      key - the key whose associated property to be returned
      Returns:
      the property to which the specified key is mapped, or null if this property with given key not found
    • size

      public int size()
      Deprecated.
      Returns number of properties in this configuration
      Returns:
      number of properties in this configuration
    • list

      public List<? extends Property> list()
      Deprecated.
      Returns copy of properties list
      Returns:
      copy of properties list