org.apache.xmlrpc.jaxb

Class JaxbTypeFactory

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, String pURI, String pLocalName)
TypeSerializer
getSerializer(XmlRpcStreamConfig pConfig, Object pObject)

Methods inherited from class org.apache.xmlrpc.common.TypeFactoryImpl

getController, getParser, getSerializer

Constructor Details

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 Details

getParser

public TypeParser getParser(XmlRpcStreamConfig pConfig,
                            NamespaceContextImpl pContext,
                            String pURI,
                            String pLocalName)
Specified by:
getParser in interface TypeFactory
Overrides:
getParser in interface TypeFactoryImpl

getSerializer

public TypeSerializer getSerializer(XmlRpcStreamConfig pConfig,
                                    Object pObject)
            throws SAXException
Specified by:
getSerializer in interface TypeFactory
Overrides:
getSerializer in interface TypeFactoryImpl

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