brooklyn.config
Interface StringConfigMap

All Superinterfaces:
ConfigMap

public interface StringConfigMap
extends ConfigMap

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


Method Summary
 String getFirst(Map flags, String... keys)
          returns the value of the first key which is defined
 String getFirst(String... keys)
           
 
Methods inherited from interface brooklyn.config.ConfigMap
asMapWithStringKeys, getAllConfig, getConfig, getConfig, getConfig, getConfig, getRawConfig, submap
 

Method Detail

getFirst

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

getFirst

String getFirst(Map flags,
                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



Copyright © 2013. All Rights Reserved.