Package ch.kk7.confij.source.defaults
Class DefaultSource
- java.lang.Object
-
- ch.kk7.confij.source.defaults.DefaultSource
-
- All Implemented Interfaces:
ConfijSource
public class DefaultSource extends java.lang.Object implements ConfijSource
This is a special ConfigSource since it does not simply override existing values. It rather extends them, by introducing missing nodes and setting default values (all taken from code and not from external).
-
-
Constructor Summary
Constructors Constructor Description DefaultSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidoverride(ConfijNode rootNode)protected voidoverrideBranch(ConfijNode confijBranch)protected voidoverrideLeaf(ConfijNode leafNode)
-
-
-
Method Detail
-
override
public void override(ConfijNode rootNode)
- Specified by:
overridein interfaceConfijSource
-
overrideLeaf
protected void overrideLeaf(ConfijNode leafNode)
-
overrideBranch
protected void overrideBranch(ConfijNode confijBranch)
-
-