net.sf.mavenhist.extractor
Class ExtractorFactory

java.lang.Object
  extended by net.sf.mavenhist.extractor.ExtractorFactory

public class ExtractorFactory
extends Object

This factory is capable to create different extractors.


Constructor Summary
ExtractorFactory()
           
 
Method Summary
 IValueExtractor[] getAllExtractors()
          Gets an array of all available extractors.
static ExtractorFactory getInstance()
          Gets the singleton instance.
 IValueExtractor getValueExtractor(String id)
          Gets a ValueExtractor for the specified id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtractorFactory

public ExtractorFactory()
Method Detail

getInstance

public static ExtractorFactory getInstance()
Gets the singleton instance.

Returns:
the single instance.

getValueExtractor

public IValueExtractor getValueExtractor(String id)
Gets a ValueExtractor for the specified id.

Parameters:
id - of the required extractor.
Returns:
found extractor or null if none is found.

getAllExtractors

public IValueExtractor[] getAllExtractors()
Gets an array of all available extractors.

Returns:
Array of all available extractors.


Copyright © 2009. All Rights Reserved.