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 java.lang.Object
implements PluginPreference
Deprecated.
Container for holding configuration properties for a package or repository
  • Constructor Summary

    Constructors
    Constructor Description
    Configuration()
    Deprecated.
     
  • Method Summary

    Modifier and Type Method Description
    void add​(Property property)
    Deprecated.
    Adds given property as configuration
    Property get​(java.lang.String key)
    Deprecated.
    Gets property for a given property key
    java.util.List<? extends Property> list()
    Deprecated.
    Returns copy of properties list
    int size()
    Deprecated.
    Returns number of properties in this configuration

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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​(java.lang.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 java.util.List<? extends Property> list()
      Deprecated.
      Returns copy of properties list
      Returns:
      copy of properties list