public class RankedSchemaProviders extends Object implements SchemaProvider
| Constructor and Description |
|---|
RankedSchemaProviders() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindSchemaProvider(SchemaProvider service,
Map<String,Object> props) |
@Nullable String |
getSchema(@NotNull org.apache.sling.api.resource.Resource r,
@Nullable String[] selectors)
Get a GraphQL Schema definition for the given resource and optional selectors
|
protected void |
unbindSchemaProvider(SchemaProvider service,
Map<String,Object> props) |
@Nullable public @Nullable String getSchema(@NotNull @NotNull org.apache.sling.api.resource.Resource r, @Nullable @Nullable String[] selectors) throws IOException
SchemaProvidergetSchema in interface SchemaProviderr - The Resource to which the schema appliesselectors - Optional set of Request Selectors that can influence the schema selectionIOExceptionprotected void bindSchemaProvider(SchemaProvider service, Map<String,Object> props)
protected void unbindSchemaProvider(SchemaProvider service, Map<String,Object> props)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.