Class InteractionWriterFactory


  • public class InteractionWriterFactory
    extends Object
    A factory for InteractionWriter
    Since:
    10/06/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Method Detail

      • 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 register
        supportedOptions - : 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