graphql.kickstart.autoconfigure.tools.ListSchemaStringProvider Maven / Gradle / Ivy
The newest version!
package graphql.kickstart.autoconfigure.tools;
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;
}
}