Class PrefixedPropertyProvider
- java.lang.Object
-
- com.atlassian.bamboo.utils.properties.SimplePropertyProvider
-
- com.atlassian.bamboo.utils.properties.PrefixedPropertyProvider
-
- All Implemented Interfaces:
PropertyProvider
public class PrefixedPropertyProvider extends SimplePropertyProvider
SimplePropertyProvider that prepends property key with defined prefix
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PrefixedPropertyProvider(@NotNull Properties properties, @NotNull String propertyKeyPrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable String
getProperty(@NotNull String key)
Retrieve property valueboolean
hasProperty(@NotNull String key)
Does this provider have a given property
-
-
-
Constructor Detail
-
PrefixedPropertyProvider
protected PrefixedPropertyProvider(@NotNull @NotNull Properties properties, @NotNull @NotNull String propertyKeyPrefix)
-
-
Method Detail
-
hasProperty
public boolean hasProperty(@NotNull @NotNull String key)
Description copied from interface:PropertyProvider
Does this provider have a given property- Specified by:
hasProperty
in interfacePropertyProvider
- Overrides:
hasProperty
in classSimplePropertyProvider
- Parameters:
key
- property key- Returns:
- true if provider has a property
-
getProperty
@Nullable public @Nullable String getProperty(@NotNull @NotNull String key)
Description copied from interface:PropertyProvider
Retrieve property value- Specified by:
getProperty
in interfacePropertyProvider
- Overrides:
getProperty
in classSimplePropertyProvider
- Parameters:
key
- property key- Returns:
- property value or null if property is not provided
-
-