SMILA 1.0 API documentation

org.eclipse.smila.connectivity.framework
Class AbstractCrawler

java.lang.Object
  extended by org.eclipse.smila.connectivity.framework.AbstractCrawler
All Implemented Interfaces:
Crawler, CrawlerCallback
Direct Known Subclasses:
AbstractCompoundCrawler, FileSystemCrawler, JdbcCrawler, WebCrawler

public abstract class AbstractCrawler
extends java.lang.Object
implements Crawler, CrawlerCallback

Abstract base class for Crawler implementations.


Constructor Summary
AbstractCrawler()
          Default Constructor.
 
Method Summary
protected  void activate(ComponentContext context)
          Activate the component.
 java.lang.String getCrawlerId()
          Returns the Crawler Id, which is the OSGi DecarativeService Component Name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.smila.connectivity.framework.Crawler
close, getCounterHelper, getNext, initialize
 
Methods inherited from interface org.eclipse.smila.connectivity.framework.CrawlerCallback
dispose, getAttachment, getAttachmentNames, getMetadata
 

Constructor Detail

AbstractCrawler

public AbstractCrawler()
Default Constructor.

Method Detail

getCrawlerId

public java.lang.String getCrawlerId()
                              throws CrawlerException
Returns the Crawler Id, which is the OSGi DecarativeService Component Name.

Specified by:
getCrawlerId in interface Crawler
Returns:
the CrawlerId
Throws:
CrawlerException - if any error occurs

activate

protected void activate(ComponentContext context)
Activate the component.

Parameters:
context - the ComponentContext

SMILA 1.0 API documentation