com.atlassian.bamboo.utils.properties
Class ChainedPropertyProvider

java.lang.Object
  extended by com.atlassian.bamboo.utils.properties.ChainedPropertyProvider
All Implemented Interfaces:
PropertyProvider

public class ChainedPropertyProvider
extends Object
implements PropertyProvider

PropertyProvider implementation that allows chaining multiple PropertyProviders. It provides value from a first PropertyProvider that claims that it has a property.


Field Summary
protected  List<PropertyProvider> propertyProviders
           
 
Method Summary
 String getProperty(String key)
          Retrieve property value
 boolean hasProperty(String key)
          Does this provider have a given property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyProviders

protected final List<PropertyProvider> propertyProviders
Method Detail

hasProperty

public boolean hasProperty(@NotNull
                           String key)
Description copied from interface: PropertyProvider
Does this provider have a given property

Specified by:
hasProperty in interface PropertyProvider
Parameters:
key - property key
Returns:
true if provider has a property

getProperty

@Nullable
public String getProperty(@NotNull
                                   String key)
Description copied from interface: PropertyProvider
Retrieve property value

Specified by:
getProperty in interface PropertyProvider
Parameters:
key - property key
Returns:
property value or null if property is not provided


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.