|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.nutch.plugin.PluginDescriptor
public class PluginDescriptor
The PluginDescriptor provide access to all meta information of
a nutch-plugin, as well to the internationalizable resources and the plugin
own classloader. There are meta information about Plugin,
ExtensionPoint and Extension. To provide
access to the meta data of a plugin via a descriptor allow a lazy loading
mechanism.
| Field Summary | |
|---|---|
static org.slf4j.Logger |
LOG
|
| Constructor Summary | |
|---|---|
PluginDescriptor(String pId,
String pVersion,
String pName,
String pProviderName,
String pPluginclazz,
String pPath,
Configuration conf)
Constructor |
|
| Method Summary | |
|---|---|
void |
addDependency(String pId)
Adds a dependency |
void |
addExportedLibRelative(String pLibPath)
Adds a exported library with a relative path to the plugin directory. |
void |
addExtension(Extension pExtension)
Adds a extension. |
void |
addExtensionPoint(ExtensionPoint extensionPoint)
Adds a extension point. |
void |
addNotExportedLibRelative(String pLibPath)
Adds a not exported library with a plugin directory relative path. |
PluginClassLoader |
getClassLoader()
Returns a cached classloader for a plugin. |
String[] |
getDependencies()
Returns a array of plugin ids. |
URL[] |
getExportedLibUrls()
Returns a array exported librareis as URLs |
Extension[] |
getExtensions()
Returns an array of extensions. |
ExtensionPoint[] |
getExtenstionPoints()
Returns a array of extension points. |
String |
getName()
Returns the name of the plugin. |
URL[] |
getNotExportedLibUrls()
Returns a array of libraries as URLs that are not exported by the plugin. |
String |
getPluginClass()
Returns the fully qualified name of the class which implements the abstarct Plugin class. |
String |
getPluginId()
Returns the unique identifier of the plug-in or null. |
String |
getPluginPath()
Returns the directory path of the plugin. |
String |
getProviderName()
|
String |
getResourceString(String pKey,
Locale pLocale)
Returns a I18N'd resource string. |
String |
getVersion()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.slf4j.Logger LOG
| Constructor Detail |
|---|
public PluginDescriptor(String pId,
String pVersion,
String pName,
String pProviderName,
String pPluginclazz,
String pPath,
Configuration conf)
pId - pVersion - pName - pProviderName - pPluginclazz - pPath - | Method Detail |
|---|
public String getName()
public String getPluginClass()
Plugin class.
null.public String getPluginId()
null.
public Extension[] getExtensions()
public void addExtension(Extension pExtension)
pExtension - public void addExtensionPoint(ExtensionPoint extensionPoint)
extensionPoint - public ExtensionPoint[] getExtenstionPoints()
public String[] getDependencies()
public void addDependency(String pId)
pId - id of the dependent plugin
public void addExportedLibRelative(String pLibPath)
throws MalformedURLException
pLibPath -
MalformedURLExceptionpublic String getPluginPath()
public URL[] getExportedLibUrls()
public void addNotExportedLibRelative(String pLibPath)
throws MalformedURLException
pLibPath -
MalformedURLExceptionpublic URL[] getNotExportedLibUrls()
public PluginClassLoader getClassLoader()
public String getResourceString(String pKey,
Locale pLocale)
throws IOException
pKey - pLocale -
IOExceptionpublic String getProviderName()
public String getVersion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||