sk.uniba.euromath.gene.rendereradapter
Class RendererAdapterFactory

java.lang.Object
  extended by sk.uniba.euromath.gene.rendereradapter.RendererAdapterFactory
All Implemented Interfaces:
IExporterFactory

public final class RendererAdapterFactory
extends Object
implements IExporterFactory

Provides instances of adapters that wraps known renderers as exporters.

Author:
Martin Vysny

Field Summary
 
Fields inherited from interface sk.uniba.euromath.gene.IExporterFactory
EXTENSION_POINT_ID
 
Constructor Summary
RendererAdapterFactory()
          Constructs new instance of the factory.
 
Method Summary
 boolean equals(Object obj)
           
 Map<String,ExporterInfo> getSupportedExporters()
          Returns map that maps ID of an exporter to the information about that exporter.
 int hashCode()
           
 IExporter produce(String id, ExportHelper helper)
          Produces an instance of exporter denoted by given ID.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RendererAdapterFactory

public RendererAdapterFactory()
Constructs new instance of the factory.

Method Detail

getSupportedExporters

public Map<String,ExporterInfo> getSupportedExporters()
                                               throws ExportException
Description copied from interface: IExporterFactory
Returns map that maps ID of an exporter to the information about that exporter.

Specified by:
getSupportedExporters in interface IExporterFactory
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.

produce

public IExporter produce(String id,
                         ExportHelper helper)
                  throws ExportException
Description copied from interface: IExporterFactory
Produces an instance of exporter denoted by given ID.

Specified by:
produce in interface IExporterFactory
Parameters:
id - id of the exporter.
helper - the helper object.
Returns:
exporter instance.
Throws:
ExportException - if error occurs during exporter creation.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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