Class AbstractConfigSource

java.lang.Object
cool.scx.config.source.AbstractConfigSource
All Implemented Interfaces:
ScxConfigSource
Direct Known Subclasses:
ArgsConfigSource, JsonFileConfigSource, MapConfigSource, MultiConfigSource

public abstract class AbstractConfigSource extends Object implements ScxConfigSource
AbstractConfigSource
Version:
0.0.1
Author:
scx567888
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.fasterxml.jackson.databind.node.ObjectNode
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    callOnChange(com.fasterxml.jackson.databind.node.ObjectNode oldValue, com.fasterxml.jackson.databind.node.ObjectNode newValue)
     
    com.fasterxml.jackson.databind.node.ObjectNode
     
    void
    onChange(BiConsumer<com.fasterxml.jackson.databind.node.ObjectNode,com.fasterxml.jackson.databind.node.ObjectNode> changeHandler)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • configMapping

      protected com.fasterxml.jackson.databind.node.ObjectNode configMapping
  • Constructor Details

    • AbstractConfigSource

      public AbstractConfigSource()
  • Method Details

    • onChange

      public void onChange(BiConsumer<com.fasterxml.jackson.databind.node.ObjectNode,com.fasterxml.jackson.databind.node.ObjectNode> changeHandler)
      Specified by:
      onChange in interface ScxConfigSource
    • callOnChange

      public void callOnChange(com.fasterxml.jackson.databind.node.ObjectNode oldValue, com.fasterxml.jackson.databind.node.ObjectNode newValue)
    • configMapping

      public com.fasterxml.jackson.databind.node.ObjectNode configMapping()
      Specified by:
      configMapping in interface ScxConfigSource