fr.opensagres.xdocreport.document.textstyling
Class TextStylingTransformerRegistry

java.lang.Object
  extended by fr.opensagres.xdocreport.core.registry.AbstractRegistry<ITextStylingTransformerDiscovery>
      extended by fr.opensagres.xdocreport.document.textstyling.TextStylingTransformerRegistry

public class TextStylingTransformerRegistry
extends AbstractRegistry<ITextStylingTransformerDiscovery>

Text styling registry stores instance of ITextStylingTransformer for text styling kind SyntaxKind (Html, Mediawiki, etc...).

Instance of ITextStylingTransformer must be declared in files META-INF\services\fr.opensagres.xdocreport.template.discovery. ITextStylingTransformerDiscovery


Constructor Summary
TextStylingTransformerRegistry()
           
 
Method Summary
protected  void doDispose()
           
static TextStylingTransformerRegistry getRegistry()
           
 ITextStylingTransformer getTextStylingTransformer(String syntaxKind)
          Returns the text styling transformer for the given syntax kind.
 ITextStylingTransformer getTextStylingTransformer(SyntaxKind syntaxKind)
          Returns the text styling transformer for the given syntax kind.
protected  boolean registerInstance(ITextStylingTransformerDiscovery 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

TextStylingTransformerRegistry

public TextStylingTransformerRegistry()
Method Detail

getRegistry

public static TextStylingTransformerRegistry getRegistry()

registerInstance

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

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

doDispose

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

getTextStylingTransformer

public ITextStylingTransformer getTextStylingTransformer(SyntaxKind syntaxKind)
Returns the text styling transformer for the given syntax kind.

Parameters:
syntaxKind -
Returns:

getTextStylingTransformer

public ITextStylingTransformer getTextStylingTransformer(String syntaxKind)
Returns the text styling transformer for the given syntax kind.

Parameters:
syntaxKind -
Returns:


Copyright © 2013. All rights reserved.