Package org.apache.solr.schema
Class FieldTypePluginLoader
java.lang.Object
org.apache.solr.util.plugin.AbstractPluginLoader<FieldType>
org.apache.solr.schema.FieldTypePluginLoader
-
Constructor Summary
ConstructorsConstructorDescriptionFieldTypePluginLoader(IndexSchema schema, Map<String, FieldType> fieldTypes, Collection<SchemaAware> schemaAware) -
Method Summary
Modifier and TypeMethodDescriptionprotected FieldTypecreate(org.apache.solr.common.cloud.SolrClassLoader loader, String name, String className, org.apache.solr.common.ConfigNode node) Create a plugin from an XML configuration.protected voidInitialize the plugin.protected FieldTypeRegister a plugin with a given name.Methods inherited from class org.apache.solr.util.plugin.AbstractPluginLoader
getDefaultPackages, load, loadSingle
-
Constructor Details
-
FieldTypePluginLoader
public FieldTypePluginLoader(IndexSchema schema, Map<String, FieldType> fieldTypes, Collection<SchemaAware> schemaAware) - Parameters:
schema- The schema that will be used to initialize the FieldTypesfieldTypes- All FieldTypes that are instantiated by this Plugin Loader will be added to this MapschemaAware- Any SchemaAware objects that are instantiated by this Plugin Loader will be added to this collection.
-
-
Method Details
-
create
protected FieldType create(org.apache.solr.common.cloud.SolrClassLoader loader, String name, String className, org.apache.solr.common.ConfigNode node) throws Exception Description copied from class:AbstractPluginLoaderCreate a plugin from an XML configuration. Plugins are defined using:<plugin name="name1" class="solr.ClassName"> ... </plugin>- Overrides:
createin classAbstractPluginLoader<FieldType>- Parameters:
name- - The registered name. In the above example: "name1"className- - class name for requested plugin. In the above example: "solr.ClassName"node- - the XML node defining this plugin- Throws:
Exception
-
init
Description copied from class:AbstractPluginLoaderInitialize the plugin.- Specified by:
initin classAbstractPluginLoader<FieldType>- Parameters:
plugin- - the plugin to initializenode- - the XML node defining this plugin- Throws:
Exception
-
register
Description copied from class:AbstractPluginLoaderRegister a plugin with a given name.- Specified by:
registerin classAbstractPluginLoader<FieldType>- Returns:
- The plugin previously registered to this name, or null
- Throws:
Exception
-