Regain 2.1.0-STABLE API

net.sf.regain.crawler.plugin
Class CrawlerPluginFactory

java.lang.Object
  extended by net.sf.regain.crawler.document.PluggableFactory
      extended by net.sf.regain.crawler.plugin.CrawlerPluginFactory

public class CrawlerPluginFactory
extends PluggableFactory

Loads and initializes the crawler plugins.

Author:
Tilman Schneider, STZ-IDA an der FH Karlsruhe, adapted by Benjamin

Field Summary
private static String DEFAULT_CRAWLERPLUGIN_PACKAGE
           
private static CrawlerPluginFactory mSingleton
          The singleton.
private  CrawlerPluginManager pluginManager
           
 
Fields inherited from class net.sf.regain.crawler.document.PluggableFactory
mLog
 
Constructor Summary
protected CrawlerPluginFactory()
           
 
Method Summary
protected  String[] getClassNames(File pluggableFile, Attributes attributes)
           
protected  String getDefaultPackage()
           
static CrawlerPluginFactory getInstance()
          Gets the PluggableFactory instance.
protected  File getPluggableDir()
           
protected  void pluggableAfterInit(Pluggable pluggable, PreparatorSettings preparatorSettings)
           
 
Methods inherited from class net.sf.regain.crawler.document.PluggableFactory
createPluggables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CRAWLERPLUGIN_PACKAGE

private static final String DEFAULT_CRAWLERPLUGIN_PACKAGE
See Also:
Constant Field Values

mSingleton

private static CrawlerPluginFactory mSingleton
The singleton.


pluginManager

private CrawlerPluginManager pluginManager
Constructor Detail

CrawlerPluginFactory

protected CrawlerPluginFactory()
Method Detail

getInstance

public static CrawlerPluginFactory getInstance()
Gets the PluggableFactory instance.

Returns:
The PluggableFactory instance.

getPluggableDir

protected File getPluggableDir()
                        throws RegainException
Specified by:
getPluggableDir in class PluggableFactory
Throws:
RegainException

pluggableAfterInit

protected void pluggableAfterInit(Pluggable pluggable,
                                  PreparatorSettings preparatorSettings)
                           throws RegainException
Specified by:
pluggableAfterInit in class PluggableFactory
Throws:
RegainException

getClassNames

protected String[] getClassNames(File pluggableFile,
                                 Attributes attributes)
                          throws RegainException
Specified by:
getClassNames in class PluggableFactory
Throws:
RegainException

getDefaultPackage

protected String getDefaultPackage()
Specified by:
getDefaultPackage in class PluggableFactory

Regain 2.1.0-STABLE API

Regain 2.1.0-STABLE, Copyright (C) 2004-2010 Til Schneider, www.murfman.de, Thomas Tesche, www.clustersystems.info