sk.uniba.euromath.gene
Interface IExporterFactory

All Known Implementing Classes:
ExporterFactoryImpl, ImageExporterFactory, RendererAdapterFactory

public interface IExporterFactory

Produces the Exporter instances. Must be equal only to factory with same class. hashCode() must be implemented correctly aswell, to reflect this behaviour. It must be instantiable using the zero-argument public constructor.

Author:
Martin Vysny

Field Summary
static String EXTENSION_POINT_ID
          ID of extension point for exporter factory instances.
 
Method Summary
 Map<String,ExporterInfo> getSupportedExporters()
          Returns map that maps ID of an exporter to the information about that exporter.
 IExporter produce(String id, ExportHelper helper)
          Produces an instance of exporter denoted by given ID.
 

Field Detail

EXTENSION_POINT_ID

static final String EXTENSION_POINT_ID
ID of extension point for exporter factory instances.

See Also:
Constant Field Values
Method Detail

produce

IExporter produce(String id,
                  ExportHelper helper)
                  throws ExportException
Produces an instance of exporter denoted by given ID.

Parameters:
id - id of the exporter.
helper - the helper object.
Returns:
exporter instance.
Throws:
ExportException - if error occurs during exporter creation.
IllegalArgumentException - if id is not known.

getSupportedExporters

Map<String,ExporterInfo> getSupportedExporters()
                                               throws ExportException
Returns map that maps ID of an exporter to the information about that exporter.

Returns:
maps ID to info about the exporter. Factory should compute this map only once - it won't get modified.
Throws:
ExportException - if problem occurs.


Copyright 2003-2003-2006 null. All Rights Reserved.