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, loadSinglepublic 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
AbstractPluginLoadercreate 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 pluginExceptionprotected void init(FieldType plugin, Node node) throws Exception
AbstractPluginLoaderinit in class AbstractPluginLoader<FieldType>plugin - - the plugin to initializenode - - the XML node defining this pluginExceptionprotected FieldType register(String name, FieldType plugin) throws Exception
AbstractPluginLoaderregister in class AbstractPluginLoader<FieldType>ExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.