org.apache.nutch.plugin
Class PluginManifestParser
- java.lang.Object
- org.apache.nutch.plugin.PluginManifestParser
public class PluginManifestParser extends Object
The PluginManifestParser
parser just parse the manifest file in all plugin directories.
- Author:
- joa23
Field Summary
Fields Modifier and Type Field and Description static org.slf4j.Logger
LOG
Constructor Summary
Constructors Constructor and Description PluginManifestParser(org.apache.hadoop.conf.Configuration conf,
PluginRepository pluginRepository)
Method Summary
Methods Modifier and Type Method and Description File
getPluginFolder(String name)
Return the named plugin folder.
Map
parsePluginFolder(String[] pluginFolders)
Returns a list of all found plugin descriptors.
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
-
LOG
public static final org.slf4j.Logger LOG
Constructor Detail
-
PluginManifestParser
public PluginManifestParser(org.apache.hadoop.conf.Configuration conf, PluginRepository pluginRepository)
Method Detail
-
parsePluginFolder
public Map<String,PluginDescriptor> parsePluginFolder(String[] pluginFolders)
Returns a list of all found plugin descriptors.
- Parameters:
- <code>pluginFolders</code> - folders to search plugins from
- Returns:
- A [<code>Map</code>](http://java.sun.com/javase/6/docs/api/java/util/Map.html?is-external=true) of all found [<code>PluginDescriptor</code>](../../../../org/apache/nutch/plugin/PluginDescriptor.html)s.
-
getPluginFolder
public File getPluginFolder(String name)
Return the named plugin folder. If the name is absolute then it is returned. Otherwise, for relative names, the classpath is scanned.