Interface StatelessValueLoader

  • All Known Implementing Classes:
    RootStatelessValueLoader

    public interface StatelessValueLoader
    Loads a value onto the Object graph.
    Author:
    Daniel Sagenschneider
    • Method Detail

      • loadValue

        void loadValue​(java.lang.Object object,
                       java.lang.String name,
                       int nameIndex,
                       java.lang.String value,
                       HttpValueLocation location,
                       java.util.Map<PropertyKey,​java.lang.Object> state)
                throws HttpException
        Loads the value onto the object graph.
        Parameters:
        object - Root object of the graph to have the value loaded.
        name - Full property name.
        nameIndex - Index into property name to identify particular property name for next stringed property to load.
        value - Property value.
        location - HttpValueLocation.
        state - State of loading values to the Object graph.
        Throws:
        HttpException - If fails to load the value.
      • visitValueNames

        void visitValueNames​(java.util.function.Consumer<ValueName> visitor,
                             java.lang.String namePrefix,
                             java.util.List<StatelessValueLoader> visistedLoaders)
        Traverses the ValueName instances.
        Parameters:
        visitor - Visits the ValueName instances.
        namePrefix - Prefix for name of ValueName.
        visistedLoaders - Tracks already visited StatelessValueLoader instances. This avoids infinite loops in recursive ValueName instances.