public class StaticSchemaDefinitionProvider extends AbstractLogEnabled implements SchemaDefinitionProvider, Configurable, Serviceable
| Modifier and Type | Field and Description |
|---|---|
protected SchemaHelper |
_schemaHelper
The schema helper.
|
private String |
_schemaLocation |
protected SourceResolver |
_sourceResolver
The source resolver.
|
| Constructor and Description |
|---|
StaticSchemaDefinitionProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration configuration) |
Collection<SchemaDefinition> |
getDefinitions()
Return the schema definitions to add to the schema.
|
protected Collection<SchemaDefinition> |
getDefinitions(org.apache.solr.client.solrj.response.schema.SchemaRepresentation schema)
Get the definitions from the given schema representation.
|
void |
service(ServiceManager manager) |
getLogger, setLoggerprotected SourceResolver _sourceResolver
protected SchemaHelper _schemaHelper
private String _schemaLocation
public StaticSchemaDefinitionProvider()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void configure(Configuration configuration) throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionpublic Collection<SchemaDefinition> getDefinitions()
SchemaDefinitionProvidergetDefinitions in interface SchemaDefinitionProviderprotected Collection<SchemaDefinition> getDefinitions(org.apache.solr.client.solrj.response.schema.SchemaRepresentation schema)
schema - The schema representation.