blob: 8d16b9727c166ee9a996c76e9ca1cb0a4c841b10 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config;
/**
* The Node class is superclass for all nodes in a {@link
* ConfigInstance}. Important subclasses of this node are {@link
* InnerNode} and {@link LeafNode}.
*
*/
public abstract class Node {
/**
* Postinitialize this node. Any node needing to process its values depending on the config
* id should override this method.
*
* @param configId the configId of the ConfigInstance that owns (or is) this node
*/
public void postInitialize(String configId) { return; }
/**
* This method is meant for internal use in the configuration system.
* Overrides Object.clone(), and is overriden by LeafNode.clone().
*
* @return a new instance similar to this object.
*/
protected Object clone() throws CloneNotSupportedException {
return super.clone();
}
}
|