public class SchemaRepository
extends java.lang.Object
| Constructor and Description |
|---|
SchemaRepository(TypeLoader typeLoader) |
| Modifier and Type | Method and Description |
|---|---|
Schema |
get(com.google.common.reflect.TypeToken<?> type,
ApiConfig config)
Gets a schema for a type and API config.
|
java.util.List<Schema> |
getAllSchemaForApi(ApiKey apiKey)
Gets all schema for an API key.
|
Schema |
getOrAdd(com.google.common.reflect.TypeToken<?> type,
ApiConfig config)
Gets a schema for a type and API config, creating it if it doesn't already exist.
|
public SchemaRepository(TypeLoader typeLoader)
public Schema get(com.google.common.reflect.TypeToken<?> type, ApiConfig config)
Schema if one has been created, or null otherwise.public Schema getOrAdd(com.google.common.reflect.TypeToken<?> type, ApiConfig config)
Schema for the requested type and API config.