Class ChainedPropertyProvider
java.lang.Object
com.atlassian.bamboo.utils.properties.ChainedPropertyProvider
- All Implemented Interfaces:
PropertyProvider
PropertyProvider implementation that allows chaining multiple PropertyProviders.
It provides value from a first PropertyProvider that claims that it has a property.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
getProperty
(@NotNull String key) Retrieve property valueboolean
hasProperty
(@NotNull String key) Does this provider have a given property
-
Field Details
-
propertyProviders
-
-
Method Details
-
hasProperty
Description copied from interface:PropertyProvider
Does this provider have a given property- Specified by:
hasProperty
in interfacePropertyProvider
- Parameters:
key
- property key- Returns:
- true if provider has a property
-
getProperty
Description copied from interface:PropertyProvider
Retrieve property value- Specified by:
getProperty
in interfacePropertyProvider
- Parameters:
key
- property key- Returns:
- property value or null if property is not provided
-