Brooklyn

brooklyn.config
[Java] Interface StringConfigMap

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

public interface 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(java.util.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
asMapWithStringKeys, getAllConfig, getConfig, getConfig, getConfig, getConfig, getRawConfig, submap
 

Method Detail

getFirst

public java.lang.String getFirst(java.lang.String... keys)
See Also:
getFirst(java.util.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.