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 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 configurationMethods 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
Deprecated.Adds given property as configuration- Parameters:
property- this is the property to be added to the configuration
-
get
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
Deprecated.Returns copy of properties list- Returns:
- copy of properties list
-