org.apache.xmlrpc.jaxb
Class JaxbTypeFactory

java.lang.Object
  extended byorg.apache.xmlrpc.common.TypeFactoryImpl
      extended byorg.apache.xmlrpc.jaxb.JaxbTypeFactory
All Implemented Interfaces:
TypeFactory

public class JaxbTypeFactory
extends TypeFactoryImpl

A type factory with support for JAXB objects.


Constructor Summary
JaxbTypeFactory(XmlRpcController pController, JAXBContext pContext)
          Creates a new instance with the given controller and JAXB context.
 
Method Summary
 TypeParser getParser(XmlRpcStreamConfig pConfig, NamespaceContextImpl pContext, java.lang.String pURI, java.lang.String pLocalName)
          Creates a parser for a parameter or result object.
 TypeSerializer getSerializer(XmlRpcStreamConfig pConfig, java.lang.Object pObject)
          Creates a serializer for the object pObject.
 
Methods inherited from class org.apache.xmlrpc.common.TypeFactoryImpl
getController
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxbTypeFactory

public JaxbTypeFactory(XmlRpcController pController,
                       JAXBContext pContext)
Creates a new instance with the given controller and JAXB context.

Parameters:
pController - The controller, which will invoke the factory.
pContext - The context being used to create marshallers and unmarshallers.
Method Detail

getParser

public TypeParser getParser(XmlRpcStreamConfig pConfig,
                            NamespaceContextImpl pContext,
                            java.lang.String pURI,
                            java.lang.String pLocalName)
Description copied from interface: TypeFactory
Creates a parser for a parameter or result object.

Specified by:
getParser in interface TypeFactory
Overrides:
getParser in class TypeFactoryImpl

getSerializer

public TypeSerializer getSerializer(XmlRpcStreamConfig pConfig,
                                    java.lang.Object pObject)
                             throws org.xml.sax.SAXException
Description copied from interface: TypeFactory
Creates a serializer for the object pObject.

Specified by:
getSerializer in interface TypeFactory
Overrides:
getSerializer in class TypeFactoryImpl
Throws:
org.xml.sax.SAXException


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.