All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.solon.execution.CompositeThreadLocalAccessor Maven / Gradle / Ivy

There is a newer version: 3.0.5-M3
Show newest version
package graphql.solon.execution;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;


/**
 * @author fuzi1996
 * @since 2.3
 */
class CompositeThreadLocalAccessor implements ThreadLocalAccessor {

    private final List accessors;

    CompositeThreadLocalAccessor(List accessors) {
        this.accessors = new ArrayList<>(accessors);
    }

    @Override
    public void extractValues(Map container) {
        this.accessors.forEach((accessor) -> accessor.extractValues(container));
    }

    @Override
    public void restoreValues(Map values) {
        this.accessors.forEach((accessor) -> accessor.restoreValues(values));
    }

    @Override
    public void resetValues(Map values) {
        this.accessors.forEach((accessor) -> accessor.resetValues(values));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy