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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(Property property)Deprecated.Adds given property as configurationPropertyget(java.lang.String key)Deprecated.Gets property for a given property keyjava.util.List<? extends Property>list()Deprecated.Returns copy of properties listintsize()Deprecated.Returns number of properties in this configuration
-
-
-
Method Detail
-
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
-
-