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> implements 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 collection 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.

deprecated:
since 0.6; use SetConfigKey. The ListConfigKey no longer guarantees order


Nested Class Summary
interface ListConfigKey.ListModification

static class ListConfigKey.ListModificationBase

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
BasicConfigKey, BasicConfigKey, BasicConfigKey, BasicConfigKey, BasicConfigKey, BasicConfigKey, BasicConfigKey, BasicConfigKey, BasicConfigKey, builder, builder, equals, extractValue, getDefaultValue, getDescription, getName, getNameParts, getType, getTypeName, getTypeToken, hasDefaultValue, hashCode, isReconfigurable, isSet, 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

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


 
Method Detail

applyValueToMap

@Override
public Object applyValueToMap(Object value, Map target) {
public java.lang.Object applyValueToMap(java.lang.Object value, java.util.Map target)


extractValue

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


isSet

public boolean isSet(Map vals) {
public boolean isSet(java.util.Map vals)


isSubKey

public boolean isSubKey(Object contender) {
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.