ca.quine.jcommons.sourceexporter
Class CustomSourceExporter

java.lang.Object
  |
  +--ca.quine.jcommons.sourceexporter.SourceExporter
        |
        +--ca.quine.jcommons.sourceexporter.CustomSourceExporter

public class CustomSourceExporter
extends SourceExporter

This class demostrates how to subclass the SourceExporter and add a custom marshaller.


Field Summary
 
Fields inherited from class ca.quine.jcommons.sourceexporter.SourceExporter
chainOfResponsibility
 
Constructor Summary
CustomSourceExporter()
           
 
Method Summary
protected  void addConfiguredMarshallers()
           
static void export(Object object, String filename)
           
 
Methods inherited from class ca.quine.jcommons.sourceexporter.SourceExporter
export, export, export
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomSourceExporter

public CustomSourceExporter()
Method Detail

addConfiguredMarshallers

protected void addConfiguredMarshallers()
Overrides:
addConfiguredMarshallers in class SourceExporter

export

public static void export(Object object,
                          String filename)
                   throws IllegalArgumentException,
                          IllegalAccessException,
                          NoSuchFieldException,
                          ClassNotFoundException,
                          IOException,
                          InvocationTargetException,
                          InstantiationException
IllegalArgumentException
IllegalAccessException
NoSuchFieldException
ClassNotFoundException
IOException
InvocationTargetException
InstantiationException