|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.nutch.plugin.PluginRepository
public class PluginRepository
The plugin repositority is a registry of all plugins. At system boot up a repositority is builded by parsing the mainifest files of all plugins. Plugins that require not existing other plugins are not registed. For each plugin a plugin descriptor instance will be created. The descriptor represents all meta information about a plugin. So a plugin instance will be created later when it is required, this allow lazy plugin loading.
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
|
Constructor Summary | |
---|---|
PluginRepository(Configuration conf)
|
Method Summary | |
---|---|
void |
finalize()
|
static PluginRepository |
get(Configuration conf)
|
ExtensionPoint |
getExtensionPoint(String pXpId)
Returns a extension point indentified by a extension point id. |
PluginDescriptor |
getPluginDescriptor(String pPluginId)
Returns the descriptor of one plugin identified by a plugin id. |
PluginDescriptor[] |
getPluginDescriptors()
Returns all registed plugin descriptors. |
Plugin |
getPluginInstance(PluginDescriptor pDescriptor)
Returns a instance of a plugin. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
public PluginRepository(Configuration conf) throws RuntimeException
PluginRuntimeException
RuntimeException
Object.Object()
Method Detail |
---|
public static PluginRepository get(Configuration conf)
public PluginDescriptor[] getPluginDescriptors()
public PluginDescriptor getPluginDescriptor(String pPluginId)
pPluginId
-
public ExtensionPoint getExtensionPoint(String pXpId)
pXpId
-
public Plugin getPluginInstance(PluginDescriptor pDescriptor) throws PluginRuntimeException
pDescriptor
-
PluginRuntimeException
public void finalize() throws Throwable
finalize
in class Object
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |