Package psidev.psi.mi.jami.factory
Class InteractionWriterFactory
- java.lang.Object
-
- psidev.psi.mi.jami.factory.InteractionWriterFactory
-
public class InteractionWriterFactory extends Object
A factory for InteractionWriter- Since:
10/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearRegisteredDataSourceWriters()
Clear all the registered writers from this factorystatic InteractionWriterFactory
getInstance()
Getter for the fieldinstance
.InteractionWriter
getInteractionWriterWith(Map<String,Object> requiredOptions)
getInteractionWriterWithvoid
registerDataSourceWriter(Class<? extends InteractionWriter> dataSourceClass, Map<String,Object> supportedOptions)
Register a datasource writer with options in this factoryvoid
removeDataSourceWriter(Class<? extends InteractionWriter> dataSourceClass)
Remove the interactionDataSourceWriter from this factory
-
-
-
Method Detail
-
getInstance
public static InteractionWriterFactory getInstance()
Getter for the field
instance
.- Returns:
- a
InteractionWriterFactory
object.
-
registerDataSourceWriter
public void registerDataSourceWriter(Class<? extends InteractionWriter> dataSourceClass, Map<String,Object> supportedOptions)
Register a datasource writer with options in this factory- Parameters:
dataSourceClass
- : dataSource class to registersupportedOptions
- : options supported by this dataSource
-
removeDataSourceWriter
public void removeDataSourceWriter(Class<? extends InteractionWriter> dataSourceClass)
Remove the interactionDataSourceWriter from this factory- Parameters:
dataSourceClass
- : the dataSource class
-
clearRegisteredDataSourceWriters
public void clearRegisteredDataSourceWriters()
Clear all the registered writers from this factory
-
getInteractionWriterWith
public InteractionWriter getInteractionWriterWith(Map<String,Object> requiredOptions)
getInteractionWriterWith
- Parameters:
requiredOptions
- : options for initialising writer- Returns:
- the registered InteractionWriter supporting this options, null if nothing could be found
-
-