fr.opensagres.xdocreport.converter
Class ConverterRegistry

java.lang.Object
  extended by fr.opensagres.xdocreport.core.registry.AbstractRegistry<IConverterDiscovery>
      extended by fr.opensagres.xdocreport.converter.ConverterRegistry

public class ConverterRegistry
extends AbstractRegistry<IConverterDiscovery>

IConverter registry.


Constructor Summary
ConverterRegistry()
           
 
Method Summary
protected  void doDispose()
           
 IConverter findConverter(Options options)
           
 IConverter findConverter(String from, String to, String via)
           
 IConverter getConverter(Options options)
           
 IConverter getConverter(String from, String to, String via)
           
 ConverterFrom getConverterFrom(String from)
           
 Set<String> getFroms()
           
static ConverterRegistry getRegistry()
           
protected  boolean registerInstance(IConverterDiscovery discovery)
          Register the instance in the registry.
 
Methods inherited from class fr.opensagres.xdocreport.core.registry.AbstractRegistry
dispose, initialize, initializeIfNeeded, onEndInitialization, onStartInitialization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterRegistry

public ConverterRegistry()
Method Detail

getRegistry

public static ConverterRegistry getRegistry()

findConverter

public IConverter findConverter(Options options)
                         throws XDocConverterException
Throws:
XDocConverterException

findConverter

public IConverter findConverter(String from,
                                String to,
                                String via)
                         throws XDocConverterException
Throws:
XDocConverterException

getConverter

public IConverter getConverter(Options options)

getConverter

public IConverter getConverter(String from,
                               String to,
                               String via)

getConverterFrom

public ConverterFrom getConverterFrom(String from)

getFroms

public Set<String> getFroms()

doDispose

protected void doDispose()
Specified by:
doDispose in class AbstractRegistry<IConverterDiscovery>

registerInstance

protected boolean registerInstance(IConverterDiscovery discovery)
Description copied from class: AbstractRegistry
Register the instance in the registry.

Specified by:
registerInstance in class AbstractRegistry<IConverterDiscovery>
Returns:
true if instance cannot be registered and false otherwise.


Copyright © 2013. All rights reserved.