public final class FieldTypePluginLoader extends AbstractPluginLoader<FieldType>
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
FieldTypePluginLoader(IndexSchema schema,
Map<String,FieldType> fieldTypes,
Collection<SchemaAware> schemaAware) |
Modifier and Type | Method and Description |
---|---|
protected FieldType |
create(SolrResourceLoader loader,
String name,
String className,
Node node)
Create a plugin from an XML configuration.
|
protected void |
init(FieldType plugin,
Node node)
Initialize the plugin.
|
protected FieldType |
register(String name,
FieldType plugin)
Register a plugin with a given name.
|
getDefaultPackages, load, loadSingle
public FieldTypePluginLoader(IndexSchema schema, Map<String,FieldType> fieldTypes, Collection<SchemaAware> schemaAware)
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.protected FieldType create(SolrResourceLoader loader, String name, String className, Node node) throws Exception
AbstractPluginLoader
<plugin name="name1" class="solr.ClassName">
...
</plugin>
create
in class AbstractPluginLoader<FieldType>
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 pluginException
protected void init(FieldType plugin, Node node) throws Exception
AbstractPluginLoader
init
in class AbstractPluginLoader<FieldType>
plugin
- - the plugin to initializenode
- - the XML node defining this pluginException
protected FieldType register(String name, FieldType plugin) throws Exception
AbstractPluginLoader
register
in class AbstractPluginLoader<FieldType>
Exception
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.