persistNode
public void persistNode(Path path,
Map<String,Object> configNode,
Class configurableClass)
throws ConfigurationException
Persists the configuration node to the specified path.
The path must exist (or at least all nodes but the last one).
The property is created/fully overwritten, i.e. if there were any child nodes in the old root that are not present in the new node root, they will be deleted in the new tree.
- Specified by:
persistNode
in interface Configuration
- Overrides:
persistNode
in class DelegatingConfiguration
- Parameters:
path
- path to the node
configNode
- configuration node to persist
configurableClass
- class annotated with ConfigurableClass, ConfigurableProperty annotations that corresponds to this node.
- Throws:
ConfigurationException