Package 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> 
- 
- 
Constructor SummaryConstructors Constructor Description FieldTypePluginLoader(IndexSchema schema, Map<String,FieldType> fieldTypes, Collection<SchemaAware> schemaAware)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 voidinit(FieldType plugin, org.apache.solr.common.ConfigNode node)Initialize the plugin.protected FieldTyperegister(String name, FieldType plugin)Register a plugin with a given name.- 
Methods inherited from class org.apache.solr.util.plugin.AbstractPluginLoadergetDefaultPackages, load, loadSingle
 
- 
 
- 
- 
- 
Constructor Detail- 
FieldTypePluginLoaderpublic FieldTypePluginLoader(IndexSchema schema, Map<String,FieldType> fieldTypes, Collection<SchemaAware> schemaAware) - Parameters:
- schema- The schema that will be used to initialize the FieldTypes
- fieldTypes- All FieldTypes that are instantiated by this Plugin Loader will be added to this Map
- schemaAware- Any SchemaAware objects that are instantiated by this Plugin Loader will be added to this collection.
 
 
- 
 - 
Method Detail- 
createprotected 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 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
 
 - 
initprotected void init(FieldType plugin, org.apache.solr.common.ConfigNode node) throws Exception Description copied from class:AbstractPluginLoaderInitialize the plugin.- Specified by:
- initin class- AbstractPluginLoader<FieldType>
- Parameters:
- plugin- - the plugin to initialize
- node- - the XML node defining this plugin
- Throws:
- Exception
 
 - 
registerprotected FieldType register(String name, FieldType plugin) throws Exception Description copied from class:AbstractPluginLoaderRegister a plugin with a given name.- Specified by:
- registerin class- AbstractPluginLoader<FieldType>
- Returns:
- The plugin previously registered to this name, or null
- Throws:
- Exception
 
 
- 
 
-