Skip navigation links


com.fatwire.transformer.common
Class TransformerFactory

java.lang.Object
  extended by com.fatwire.transformer.common.TransformerFactory


public class TransformerFactory
extends java.lang.Object

This is factory to select the DocumentTransformer based on the file input types and out of the file types. This would be using the spring transformer.xml to read the WordDocumentManager and DocumentTransform. User can plug in their own implementation as a spring bean


Constructor Summary
TransformerFactory()
           

 

Method Summary
static DocumentTransformer getTransformer(java.util.Properties csproperties, java.lang.String inputFileExtention, java.lang.String outputFileExtention)
          Create an instance of the specified document transformer.
static DocumentTransformer getTransformer(java.lang.String sClassName, Configuration config)
          Create an instance of the document transformer specified by the implementation classname.
static DocumentTransformer getTransformer(java.lang.String inputFileExtention, java.lang.String outputFileExtention)
          Create an instance of the specified document transformer.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

TransformerFactory

public TransformerFactory()

Method Detail

getTransformer

public static DocumentTransformer getTransformer(java.lang.String inputFileExtention,
                                                 java.lang.String outputFileExtention)
Create an instance of the specified document transformer. This is selected based on the input file extension and output file extension
Parameters:
inputFileExtention - -- input file type
outputFileExtention - -- output file type
Returns:
returns the DocumentTransformer

getTransformer

public static DocumentTransformer getTransformer(java.util.Properties csproperties,
                                                 java.lang.String inputFileExtention,
                                                 java.lang.String outputFileExtention)
Create an instance of the specified document transformer. This is selected based on the input file extension and output file extension
Parameters:
csproperties - -- Content Server related configuration like outputfolder installdirectory etc can be passed here.
inputFileExtention - -- input file type
outputFileExtention - -- output file type
Returns:
returns the DocumentTransformer

getTransformer

public static DocumentTransformer getTransformer(java.lang.String sClassName,
                                                 Configuration config)
Create an instance of the document transformer specified by the implementation classname.
Parameters:
sClassName - -- Implementation class name for the document transformer
config - -- Configuration for the transformer
Returns:
DocumentTransformer specified by classname

Skip navigation links


Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.