biz.hammurapi.jms.adapter.converters
Class SimpleXmlConverter

java.lang.Object
  extended by biz.hammurapi.config.ComponentBase
      extended by biz.hammurapi.jms.adapter.converters.StylingXmlConverter
          extended by biz.hammurapi.jms.adapter.converters.DomConverter
              extended by biz.hammurapi.jms.adapter.converters.SimpleXmlConverter
All Implemented Interfaces:
biz.hammurapi.config.Component, biz.hammurapi.config.Context, Converter, biz.hammurapi.metrics.MeasurementCollector, biz.hammurapi.metrics.MeasurementConsumer

public class SimpleXmlConverter
extends DomConverter

This class uses CompositeDomSerializer to convert Java objects to XML and DomConfigFactory to convert XML to Java objects.

Author:
Pavel

Field Summary
 
Fields inherited from class biz.hammurapi.jms.adapter.converters.StylingXmlConverter
transformerFactory
 
Fields inherited from class biz.hammurapi.config.ComponentBase
owner
 
Constructor Summary
SimpleXmlConverter()
           
 
Method Summary
protected  javax.xml.transform.Source convert(java.lang.Object request)
          Serializes object to XML using composite dom serializer
protected  java.lang.Object processResult(javax.xml.transform.Result result)
          Creates ojbect from result.
 
Methods inherited from class biz.hammurapi.jms.adapter.converters.DomConverter
createResult
 
Methods inherited from class biz.hammurapi.jms.adapter.converters.StylingXmlConverter
convert, convert, convert, createDocument, getTransformer, start, stop
 
Methods inherited from class biz.hammurapi.config.ComponentBase
addMeasurement, get, getChild, getMeasurementConsumer, getOwner, getOwner, setMeasurementConsumer, setOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleXmlConverter

public SimpleXmlConverter()
Method Detail

processResult

protected java.lang.Object processResult(javax.xml.transform.Result result)
                                  throws java.lang.Exception
Creates ojbect from result. In the case of exception tries to reproduce and throw the same exception

Overrides:
processResult in class DomConverter
Returns:
Throws:
java.lang.Exception

convert

protected javax.xml.transform.Source convert(java.lang.Object request)
                                      throws java.lang.Exception
Serializes object to XML using composite dom serializer

Overrides:
convert in class DomConverter
Returns:
Throws:
java.lang.Exception


Copyright © 2006 Hammurapi Group. All Rights Reserved.