Brooklyn

brooklyn.event.basic
[Java] Class BasicConfigKey

java.lang.Object
  brooklyn.event.basic.BasicConfigKey
All Implemented Interfaces:
ConfigKeySelfExtracting, java.io.Serializable

public class BasicConfigKey

Constructor Summary
BasicConfigKey()

BasicConfigKey(java.lang.Class type, java.lang.String name)

BasicConfigKey(java.lang.Class type, java.lang.String name, java.lang.String description)

BasicConfigKey(java.lang.Class type, java.lang.String name, java.lang.String description, java.lang.Object defaultValue)

BasicConfigKey(ConfigKey key, java.lang.Object defaultValue)

 
Method Summary
boolean equals(java.lang.Object obj)

java.lang.Object extractValue(java.util.Map vals, ExecutionContext exec)

Retrieves the value corresponding to this config key from the given map.

java.lang.Object getDefaultValue()

@see ConfigKey#getDefaultValue()

java.lang.String getDescription()

@see ConfigKey#getDescription()

java.lang.String getName()

@see ConfigKey#getName()

java.util.Collection getNameParts()

@see ConfigKey#getNameParts()

java.lang.Class getType()

@see ConfigKey#getType()

java.lang.String getTypeName()

@see ConfigKey#getTypeName()

boolean hasDefaultValue()

@see ConfigKey#hasDefaultValue()

int hashCode()

boolean isSet(java.util.Map vals)

protected java.lang.Object resolveValue(java.lang.Object v, ExecutionContext exec)

static java.lang.Object resolveValue(java.lang.Object v, java.lang.Class type, ExecutionContext exec)

attempt to resolve the given value as the given type, waiting on futures, and coercing as allowed by TypeCoercions

java.lang.String toString()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Constructor Detail

BasicConfigKey

public BasicConfigKey()


BasicConfigKey

public BasicConfigKey(java.lang.Class type, java.lang.String name)


BasicConfigKey

public BasicConfigKey(java.lang.Class type, java.lang.String name, java.lang.String description)


BasicConfigKey

public BasicConfigKey(java.lang.Class type, java.lang.String name, java.lang.String description, java.lang.Object defaultValue)


BasicConfigKey

public BasicConfigKey(ConfigKey key, java.lang.Object defaultValue)


 
Method Detail

equals

@Override
public boolean equals(java.lang.Object obj)


extractValue

@SuppressWarnings("unchecked")
@Override
public java.lang.Object extractValue(java.util.Map vals, ExecutionContext exec)
Retrieves the value corresponding to this config key from the given map. Could be overridden by more sophisticated config keys, such as MapConfigKey etc.


getDefaultValue

public java.lang.Object getDefaultValue()
See Also:
ConfigKey#getDefaultValue()#getDefaultValue()


getDescription

public java.lang.String getDescription()
See Also:
ConfigKey#getDescription()#getDescription()


getName

public java.lang.String getName()
See Also:
ConfigKey#getName()#getName()


getNameParts

public java.util.Collection getNameParts()
See Also:
ConfigKey#getNameParts()#getNameParts()


getType

public java.lang.Class getType()
See Also:
ConfigKey#getType()#getType()


getTypeName

public java.lang.String getTypeName()
See Also:
ConfigKey#getTypeName()#getTypeName()


hasDefaultValue

public boolean hasDefaultValue()
See Also:
ConfigKey#hasDefaultValue()#hasDefaultValue()


hashCode

@Override
public int hashCode()


isSet

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


resolveValue

protected java.lang.Object resolveValue(java.lang.Object v, ExecutionContext exec)


resolveValue

public static java.lang.Object resolveValue(java.lang.Object v, java.lang.Class type, ExecutionContext exec)
attempt to resolve the given value as the given type, waiting on futures, and coercing as allowed by TypeCoercions
deprecated:
in 0.4.0, use Tasks.resolveValue


toString

@Override
public java.lang.String toString()


 

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