|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.solr.util.plugin.AbstractPluginLoader<T>
public abstract class AbstractPluginLoader<T>
An abstract super class that manages standard solr-style plugin configuration.
Field Summary | |
---|---|
static org.slf4j.Logger |
log
|
Constructor Summary | |
---|---|
AbstractPluginLoader(String type)
|
|
AbstractPluginLoader(String type,
boolean preRegister,
boolean requireName)
|
Method Summary | |
---|---|
protected T |
create(org.apache.solr.common.ResourceLoader loader,
String name,
String className,
Node node)
Create a plugin from an XML configuration. |
protected String[] |
getDefaultPackages()
Where to look for classes |
protected abstract void |
init(T plugin,
Node node)
Initialize the plugin. |
T |
load(org.apache.solr.common.ResourceLoader loader,
NodeList nodes)
Given a NodeList from XML in the form: |
T |
loadSingle(org.apache.solr.common.ResourceLoader loader,
Node node)
Given a NodeList from XML in the form: |
protected abstract T |
register(String name,
T plugin)
Register a plugin with a given name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static org.slf4j.Logger log
Constructor Detail |
---|
public AbstractPluginLoader(String type, boolean preRegister, boolean requireName)
type
- is the 'type' name included in error messages.preRegister
- if true, this will first register all Plugins, then it will initialize them.public AbstractPluginLoader(String type)
Method Detail |
---|
protected String[] getDefaultPackages()
protected T create(org.apache.solr.common.ResourceLoader loader, String name, String className, Node node) throws Exception
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
Exception
protected abstract T register(String name, T plugin) throws Exception
Exception
protected abstract void init(T plugin, Node node) throws Exception
plugin
- - the plugin to initializenode
- - the XML node defining this plugin
Exception
public T load(org.apache.solr.common.ResourceLoader loader, NodeList nodes)
public T loadSingle(org.apache.solr.common.ResourceLoader loader, Node node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |