public class ProductIOPlugInManager extends Object
ProductIOPlugInManager class is used to manage all registered reader and writer plug-ins.
This class implements the singleton design pattern, since only one manager instance is required in the system.
| Modifier | Constructor and Description |
|---|---|
protected |
ProductIOPlugInManager()
Protected constructor - singleton
|
| Modifier and Type | Method and Description |
|---|---|
void |
addReaderPlugIn(ProductReaderPlugIn readerPlugIn)
Registers the specified reader plug-in by adding it to this manager.
|
void |
addWriterPlugIn(ProductWriterPlugIn writerPlugIn)
Registers the specified writer plug-in by adding it to this manager.
|
String[] |
getAllProductWriterFormatStrings()
Returns a
String[] which contains all the product writer format strings of registered product
writers, never Null. |
Iterator<ProductReaderPlugIn> |
getAllReaderPlugIns()
Gets all registered reader plug-ins.
|
Iterator<ProductWriterPlugIn> |
getAllWriterPlugIns()
Gets all registered writer plug-ins.
|
static ProductIOPlugInManager |
getInstance()
Gets this's managers singleton instance.
|
Iterator<ProductReaderPlugIn> |
getReaderPlugIns(String formatName)
Gets all reader plug-ins which support the given format name.
|
Iterator<ProductWriterPlugIn> |
getWriterPlugIns(String formatName)
Gets all writer plug-ins which support the given format name.
|
boolean |
removeReaderPlugIn(ProductReaderPlugIn readerPlugIn)
Removes the first occurrence of the specified reader plug-in.
|
boolean |
removeWriterPlugIn(ProductWriterPlugIn writerPlugIn)
Removes the first occurrence of the specified writer plug-in.
|
protected ProductIOPlugInManager()
public static ProductIOPlugInManager getInstance()
public Iterator<ProductReaderPlugIn> getAllReaderPlugIns()
public Iterator<ProductReaderPlugIn> getReaderPlugIns(String formatName)
formatName - the name of the format, must not be nullpublic void addReaderPlugIn(ProductReaderPlugIn readerPlugIn)
null, nothing happens.readerPlugIn - the reader plug-in to be added to this managerpublic boolean removeReaderPlugIn(ProductReaderPlugIn readerPlugIn)
readerPlugIn - the reader plug-in to be removed from this manager, if presenttrue if this manager contained the specified reader plug-inpublic Iterator<ProductWriterPlugIn> getAllWriterPlugIns()
public Iterator<ProductWriterPlugIn> getWriterPlugIns(String formatName)
formatName - the name of the format, must not be nullpublic void addWriterPlugIn(ProductWriterPlugIn writerPlugIn)
null, nothing happens.writerPlugIn - the writer plug-in to be added to this managerpublic boolean removeWriterPlugIn(ProductWriterPlugIn writerPlugIn)
writerPlugIn - the writer plug-in to be removed from this manager, if presenttrue if this manager contained the specified writer plug-inpublic String[] getAllProductWriterFormatStrings()
String[] which contains all the product writer format strings of registered product
writers, never Null. Returns never Null.String[] which contains all the product writer format strings of registered product
writers.Copyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.