Interface NodeResolver


  • public interface NodeResolver
    A function to resolve nodes for a specific field.
    Since:
    4.0.0
    • Field Detail

      • SKIP_FIELD

        static final NodeResolver SKIP_FIELD
        Indicates that a field should be explicitly skipped.
        Since:
        4.0.0
    • Method Detail

      • nodeKey

        static NodeResolver.Factory nodeKey()
        Creates resolvers that provide the key of the containing node for values.
        Returns:
        key-based resolver
        Since:
        4.0.0
      • keyFromSetting

        static NodeResolver.Factory keyFromSetting()
        Creates resolvers that get the node at a key defined by Setting.
        Returns:
        a factory that will extract keys from a provided annotation
        Since:
        4.0.0
      • nodeFromParent

        static NodeResolver.Factory nodeFromParent()
        A resolver that uses the containing node of a field.

        This can be used to combine multiple Java objects into one configuration node.

        Returns:
        new resolver using containing field value
        Since:
        4.0.0