Package com.yahoo.config
Class ConfigInstance
java.lang.Object
com.yahoo.config.Node
com.yahoo.config.InnerNode
com.yahoo.config.ConfigInstance
Represents an instance of an application config with a specific configId.
An instance of this class contains all values (represented by Nodes) for the config object as it is the superclass of the generated config class used by the client.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getDefName
(Class<?> type) Gets the name of the given config instancestatic String
getDefNamespace
(Class<?> type) Gets the namespace of the given config instanceReturns the serialized representation of the given node.static void
serialize
(InnerNode node, Serializer serializer) Methods inherited from class com.yahoo.config.InnerNode
equals, getAllDescendantLeafNodes, getChildren, getChildrenWithVectorsFlattened, hashCode, postInitialize, toString
-
Constructor Details
-
ConfigInstance
public ConfigInstance()
-
-
Method Details
-
getDefName
Gets the name of the given config instance -
getDefNamespace
Gets the namespace of the given config instance -
serialize
Returns the serialized representation of the given node.Declared static, instead of InnerNode member, to avoid a public 0-arg method with a commonly used name.
- Parameters:
node
- The inner node- Returns:
- a list of strings, containing the serialized representation of this config
-
serialize
-