graphql.solon.execution.CompositeThreadLocalAccessor Maven / Gradle / Ivy
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