org.eclipse.smila.connectivity.framework.compound
Class AbstractCompoundHandler
java.lang.Object
org.eclipse.smila.connectivity.framework.compound.AbstractCompoundHandler
- All Implemented Interfaces:
- CompoundHandler
- Direct Known Subclasses:
- ZipCompoundHandler
public abstract class AbstractCompoundHandler
- extends java.lang.Object
- implements CompoundHandler
Abstract base class for CompoundHandlers. Provides implementations for CompoundCrawler instance creation.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCompoundHandler
public AbstractCompoundHandler()
setCompoundCrawlerFactory
public final void setCompoundCrawlerFactory(ComponentFactory factory)
- Sets the CompoundCrawler ComponentFactory. Used by OSGi Declarative Services.
- Parameters:
factory - the CompoundCrawler ComponentFactory to add
unsetCompoundCrawlerFactory
public final void unsetCompoundCrawlerFactory(ComponentFactory factory)
- Un-sets the CompoundCrawler ComponentFactory. Used by OSGi Declarative Services.
- Parameters:
factory - the CompoundCrawler ComponentFactory to remove
extract
public final Crawler extract(Record record,
DataSourceConnectionConfig config)
throws CompoundException
- Extracts the elements of the given record and returns a Crawler over the extracted elements.
- Specified by:
extract in interface CompoundHandler
- Parameters:
record - the Recordconfig - the DataSourceConnectionConfig
- Returns:
- a Crawler interface over the extracted elements
- Throws:
CompoundException - if any error occurs- See Also:
CompoundHandler.extract(Record, DataSourceConnectionConfig)