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, setLogger
protected SourceResolver _sourceResolver
protected SchemaHelper _schemaHelper
private String _schemaLocation
public StaticSchemaDefinitionProvider()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public Collection<SchemaDefinition> getDefinitions()
SchemaDefinitionProvider
getDefinitions
in interface SchemaDefinitionProvider
protected Collection<SchemaDefinition> getDefinitions(org.apache.solr.client.solrj.response.schema.SchemaRepresentation schema)
schema
- The schema representation.