Brooklyn

brooklyn.config
[Java] Interface ConfigMap.StringConfigMap

brooklyn.config.ConfigMap.StringConfigMap
  brooklyn.config.ConfigMap
All Superinterfaces:
ConfigMap

public interface ConfigMap.StringConfigMap
extends ConfigMap

convenience extension where map is principally strings or converted to strings (supporting BrooklynProperties)


Method Summary
java.lang.String getFirst(java.lang.String... keys)

@see #getFirst(Map, String...)

java.lang.String getFirst(java.util.Map flags, java.lang.String... keys)

returns the value of the first key which is defined

 
Methods inherited from interface ConfigMap
getAllConfig, getConfig, getConfig, getConfig, getConfig, getRawConfig, submap
 

Method Detail

getFirst

public java.lang.String getFirst(java.lang.String... keys)
See Also:
getFirst(Map, String...)


getFirst

public java.lang.String getFirst(@SuppressWarnings("rawtypes") java.util.Map flags, java.lang.String... keys)
returns the value of the first key which is defined

takes the following flags: 'warnIfNone' or 'failIfNone' (both taking a boolean (to use default message) or a string (which is the message)); and 'defaultIfNone' (a default value to return if there is no such property); defaults to no warning and null default value


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.