Class TableExporterFactory
- java.lang.Object
-
- org.intermine.web.logic.export.http.TableExporterFactory
-
public class TableExporterFactory extends java.lang.Object
Factory class that creates and registers TableHttpExporter classes.- Author:
- Jakub Kulaviak
-
-
Constructor Summary
Constructors Constructor Description TableExporterFactory(WebConfig webConfig)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TableExportConfig
getConfig(java.lang.String id)
Return the TableExportConfig for the given id.TableHttpExporter
getExporter(java.lang.String id)
Return the exporter class for the given id.void
register(java.lang.String id, java.lang.String className)
Register exporter.
-
-
-
Constructor Detail
-
TableExporterFactory
public TableExporterFactory(WebConfig webConfig)
Constructor.- Parameters:
webConfig
- web config with configured exporters
-
-
Method Detail
-
getExporter
public TableHttpExporter getExporter(java.lang.String id) throws java.lang.Exception
Return the exporter class for the given id.- Parameters:
id
- id of required exporter- Returns:
- exporter or null if exporter with given id doesn't exist
- Throws:
java.lang.Exception
- if an error happens during obtaining of exporter
-
getConfig
public TableExportConfig getConfig(java.lang.String id)
Return the TableExportConfig for the given id.- Parameters:
id
- id of required config- Returns:
- config or null if config with given id doesn't exist
-
register
public void register(java.lang.String id, java.lang.String className) throws java.lang.Exception
Register exporter.- Parameters:
id
- id of registered exporterclassName
- class name of exporter- Throws:
java.lang.Exception
- if an error happens during registering of exporter
-
-