org.apache.lenya.lucene.index
Class ConfigurableIndexer

java.lang.Object
  extended by org.apache.lenya.lucene.index.AbstractIndexer
      extended by org.apache.lenya.lucene.index.ConfigurableIndexer
All Implemented Interfaces:
Indexer

public class ConfigurableIndexer
extends AbstractIndexer


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lenya.lucene.index.AbstractIndexer
AbstractIndexer.CreateIndexHandler, AbstractIndexer.DefaultIndexFilter, AbstractIndexer.DeleteHandler, AbstractIndexer.IndexHandler, AbstractIndexer.UpdateIndexHandler
 
Field Summary
static java.lang.String CONFIGURATION_CREATOR_STYLESHEET
           
 
Constructor Summary
ConfigurableIndexer()
           
 
Method Summary
 DocumentCreator createDocumentCreator(org.w3c.dom.Element indexer, java.lang.String configFileName)
          Instantiate a Document Creator for creating Lucene Documents
 java.io.FileFilter getFilter(org.w3c.dom.Element indexer, java.lang.String configFileName)
          Returns the filter used to receive the indexable files.
protected  java.lang.String getStylesheet(java.io.File configurationFile)
          Converts the configuration file to an XSLT stylesheet and returns a reader that reads this stylesheet.
 
Methods inherited from class org.apache.lenya.lucene.index.AbstractIndexer
configure, createIndex, deleteStaleDocuments, doIndex, getDocumentCreator, indexDocument, updateIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGURATION_CREATOR_STYLESHEET

public static final java.lang.String CONFIGURATION_CREATOR_STYLESHEET
See Also:
Constant Field Values
Constructor Detail

ConfigurableIndexer

public ConfigurableIndexer()
Method Detail

createDocumentCreator

public DocumentCreator createDocumentCreator(org.w3c.dom.Element indexer,
                                             java.lang.String configFileName)
                                      throws java.lang.Exception
Instantiate a Document Creator for creating Lucene Documents

Specified by:
createDocumentCreator in class AbstractIndexer
Parameters:
element - indexer node
Returns:
DocumentCreator
Throws:
java.lang.Exception - DOCUMENT ME!

getStylesheet

protected java.lang.String getStylesheet(java.io.File configurationFile)
                                  throws java.lang.Exception
Converts the configuration file to an XSLT stylesheet and returns a reader that reads this stylesheet.

Throws:
java.lang.Exception

getFilter

public java.io.FileFilter getFilter(org.w3c.dom.Element indexer,
                                    java.lang.String configFileName)
Returns the filter used to receive the indexable files.

Overrides:
getFilter in class AbstractIndexer


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.