Interface ConfigContent

All Known Subinterfaces:
ConfigContent.NodeContent, ConfigContent.OverrideContent, ConfigParser.Content

public interface ConfigContent
Config content as provided by a config source that can read all its data at once (an "eager" config source). This interface provides necessary support for changes of the underlying source and for parsable content.

Content can either provide a ConfigNode.ObjectNode or an array of bytes to be parsed by a ConfigParser.

The data stamp can be any object (to be decided by the ConfigSource).

  • Method Details

    • close

      default void close()
      Close the content, as it is no longer needed.
    • stamp

      default Optional<Object> stamp()
      A modification stamp of the content.
      Returns:
      a stamp of the content