com.oembedler.moon.graphql.boot.ListSchemaStringProvider Maven / Gradle / Ivy
package com.oembedler.moon.graphql.boot;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class ListSchemaStringProvider implements SchemaStringProvider {
private final List schemaStrings;
public ListSchemaStringProvider() {
schemaStrings = new ArrayList<>();
}
public void add(String schemaString) {
schemaStrings.add(schemaString);
}
@Override
public List schemaStrings() throws IOException {
return schemaStrings;
}
}