org.apache.solr.schema
Class FieldTypePluginLoader
java.lang.Object
org.apache.solr.util.plugin.AbstractPluginLoader<FieldType>
org.apache.solr.schema.FieldTypePluginLoader
public final class FieldTypePluginLoader
- extends AbstractPluginLoader<FieldType>
Field Summary |
protected static org.slf4j.Logger |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final org.slf4j.Logger log
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.
create
protected FieldType create(SolrResourceLoader loader,
String name,
String className,
Node node)
throws Exception
- Description copied from class:
AbstractPluginLoader
- Create a plugin from an XML configuration. Plugins are defined using:
<plugin name="name1" class="solr.ClassName">
...
</plugin>
- Overrides:
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 plugin
- Throws:
Exception
init
protected void init(FieldType plugin,
Node node)
throws Exception
- Description copied from class:
AbstractPluginLoader
- Initialize the plugin.
- Specified by:
init
in class AbstractPluginLoader<FieldType>
- Parameters:
plugin
- - the plugin to initializenode
- - the XML node defining this plugin
- Throws:
Exception
register
protected FieldType register(String name,
FieldType plugin)
throws Exception
- Description copied from class:
AbstractPluginLoader
- Register a plugin with a given name.
- Specified by:
register
in class AbstractPluginLoader<FieldType>
- Returns:
- The plugin previously registered to this name, or null
- Throws:
Exception
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.