fr.opensagres.xdocreport.document.dump
Class DumperRegistry

java.lang.Object
  extended by fr.opensagres.xdocreport.core.registry.AbstractRegistry<IDumperDiscovery>
      extended by fr.opensagres.xdocreport.document.dump.DumperRegistry

public class DumperRegistry
extends AbstractRegistry<IDumperDiscovery>

IDumper registry.


Constructor Summary
DumperRegistry()
           
 
Method Summary
protected  void doDispose()
           
 IDumper findDumper(String kind)
          Returns the dumper registered with the given kind in the registry.
 IDumper getDumper(String kind)
          Returns the dumper registered with the given kind in the registry and null otherwise.
 Set<String> getKinds()
          Returns teh list of the dumper kind registered in the registry.
static DumperRegistry getRegistry()
          Returns the dumper registry instance.
protected  boolean registerInstance(IDumperDiscovery 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

DumperRegistry

public DumperRegistry()
Method Detail

getRegistry

public static DumperRegistry getRegistry()
Returns the dumper registry instance.

Returns:

findDumper

public IDumper findDumper(String kind)
                   throws XDocReportException
Returns the dumper registered with the given kind in the registry.

Parameters:
kind - the dumper kind.
Returns:
Throws:
XDocReportException - thrown when the dumper is not found.

getDumper

public IDumper getDumper(String kind)
Returns the dumper registered with the given kind in the registry and null otherwise.

Parameters:
options -
Returns:

getKinds

public Set<String> getKinds()
Returns teh list of the dumper kind registered in the registry.

Returns:

doDispose

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

registerInstance

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

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


Copyright © 2013. All rights reserved.