Regain 2.1.0-STABLE API

net.sf.regain.crawler.document
Class PreparatorFactory

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

public class PreparatorFactory
extends PluggableFactory

Loads and initializes the preparators.

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

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.regain.crawler.document.PluggableFactory
PluggableFactory.ExtensionFilter
 
Field Summary
private static PreparatorFactory mSingleton
          The singleton.
 
Fields inherited from class net.sf.regain.crawler.document.PluggableFactory
mLog
 
Constructor Summary
PreparatorFactory()
           
 
Method Summary
 Preparator[] createPreparatorArr(PreparatorSettings[] preparatorSettingsArr)
          Creates an array of preparators from the settings.
protected  String[] getClassNames(File pluggableFile, Attributes attributes)
           
protected  String getDefaultPackage()
           
static PreparatorFactory 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

mSingleton

private static PreparatorFactory mSingleton
The singleton.

Constructor Detail

PreparatorFactory

public PreparatorFactory()
Method Detail

getInstance

public static PreparatorFactory getInstance()
Gets the PluggableFactory instance.

Returns:
The PluggableFactory instance.

pluggableAfterInit

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

getPluggableDir

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

getClassNames

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

createPreparatorArr

public Preparator[] createPreparatorArr(PreparatorSettings[] preparatorSettingsArr)
                                 throws RegainException
Creates an array of preparators from the settings.

Parameters:
preparatorSettingsArr - The list with the preparator settings.
Returns:
The preparators.
Throws:
RegainException - If the creation of a preparator failed.

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