- 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
).
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
ConfigContent.Builder<T extends ConfigContent.Builder<T>>
Fluent API builder forConfigContent
, common ancestor for parsable content builder and node content builder.static interface
Config content that provides anConfigNode.ObjectNode
directly, with no need for parsing.static interface
A content of anOverrideSource
. -
Method Summary
-
Method Details
-
close
default void close()Close the content, as it is no longer needed. -
stamp
A modification stamp of the content.- Returns:
- a stamp of the content
-