Package com.atlassian.bamboo.capability
Class DefaultCapabilityConfigurationManager
java.lang.Object
com.atlassian.bamboo.capability.DefaultCapabilityConfigurationManager
- All Implemented Interfaces:
CapabilityConfigurationManager
public class DefaultCapabilityConfigurationManager
extends Object
implements CapabilityConfigurationManager
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefaultCapabilityConfigurationManager
(com.atlassian.bandana.BandanaManager bandanaManager) -
Method Summary
Modifier and TypeMethodDescription@NotNull org.apache.commons.configuration.Configuration
getConfiguration
(@NotNull String capabilityKey) Get theConfiguration
object associated with the capability key.void
setConfiguration
(@NotNull String capabilityKey, @NotNull org.apache.commons.configuration.Configuration configuration) Associate CapabilityConfiguration with the capability key.
-
Field Details
-
BANDANA_KEY_PREFIX
-
-
Constructor Details
-
DefaultCapabilityConfigurationManager
public DefaultCapabilityConfigurationManager(com.atlassian.bandana.BandanaManager bandanaManager)
-
-
Method Details
-
getConfiguration
@NotNull public @NotNull org.apache.commons.configuration.Configuration getConfiguration(@NotNull @NotNull String capabilityKey) Description copied from interface:CapabilityConfigurationManager
Get theConfiguration
object associated with the capability key.- Specified by:
getConfiguration
in interfaceCapabilityConfigurationManager
- Parameters:
capabilityKey
-Capability
's key- Returns:
- Configuration object associated with the key or empty configuration object.
-
setConfiguration
public void setConfiguration(@NotNull @NotNull String capabilityKey, @NotNull @NotNull org.apache.commons.configuration.Configuration configuration) Description copied from interface:CapabilityConfigurationManager
Associate CapabilityConfiguration with the capability key.- Specified by:
setConfiguration
in interfaceCapabilityConfigurationManager
- Parameters:
capabilityKey
- capability keyconfiguration
-Configuration
object to be associated with the key
-