Brooklyn

brooklyn.event.basic
[Java] Class ListConfigKey

java.lang.Object
  brooklyn.event.basic.BasicConfigKey
      brooklyn.event.basic.ListConfigKey
All Implemented Interfaces:
StructuredConfigKey

public class ListConfigKey
extends BasicConfigKey

A config key representing a list of values. If a value is set on this key, it is _added_ to the list. (But a warning is issued if a colleciton is passed in.)

To add all items in a collection, to add a collection as a single element, to clear the list, or to set a collection (clearing first), use the relevant ListModification in ListModifications.

Specific values can be added in a replaceable way by referring to a subkey.


Nested Class Summary
interface ListConfigKey.ListModification

static class ListConfigKey.ListModifications

 
Field Summary
java.lang.Class subType

 
Constructor Summary
ListConfigKey(java.lang.Class subType, java.lang.String name)

ListConfigKey(java.lang.Class subType, java.lang.String name, java.lang.String description)

ListConfigKey(java.lang.Class subType, java.lang.String name, java.lang.String description, java.util.List defaultValue)

 
Method Summary
java.lang.Object applyValueToMap(java.lang.Object value, java.util.Map target)

java.util.List extractValue(java.util.Map vals, ExecutionContext exec)

boolean isSet(java.util.Map vals)

boolean isSubKey(java.lang.Object contender)

boolean isSubKey(ConfigKey contender)

ConfigKey subKey()

 
Methods inherited from class BasicConfigKey
equals, extractValue, getDefaultValue, getDescription, getName, getNameParts, getType, getTypeName, hasDefaultValue, hashCode, isSet, resolveValue, resolveValue, toString
 

Field Detail

subType

public final java.lang.Class subType


 
Constructor Detail

ListConfigKey

public ListConfigKey(java.lang.Class subType, java.lang.String name)


ListConfigKey

public ListConfigKey(java.lang.Class subType, java.lang.String name, java.lang.String description)


ListConfigKey

@SuppressWarnings({ "unchecked", "rawtypes" })
public ListConfigKey(java.lang.Class subType, java.lang.String name, java.lang.String description, java.util.List defaultValue)


 
Method Detail

applyValueToMap

@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public java.lang.Object applyValueToMap(java.lang.Object value, java.util.Map target)


extractValue

@SuppressWarnings("unchecked")
public java.util.List extractValue(java.util.Map vals, ExecutionContext exec)


isSet

@Override
public boolean isSet(java.util.Map vals)


isSubKey

public boolean isSubKey(java.lang.Object contender)


isSubKey

public boolean isSubKey(ConfigKey contender)


subKey

public ConfigKey subKey()


 

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