org.apache.xmlrpc.jaxb
Class JaxbTypeFactory
java.lang.Object
org.apache.xmlrpc.common.TypeFactoryImpl
org.apache.xmlrpc.jaxb.JaxbTypeFactory
- All Implemented Interfaces:
- TypeFactory
public class JaxbTypeFactory
- extends TypeFactoryImpl
A type factory with support for JAXB objects.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
getParser
public TypeParser getParser(XmlRpcStreamConfig pConfig,
NamespaceContextImpl pContext,
String pURI,
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
- Parameters:
pConfig
- The request configuration.pContext
- A namespace context, for looking up prefix mappings.pURI
- The namespace URI of the element containing the parameter or result.pLocalName
- The local name of the element containing the parameter or result.
- Returns:
- The created parser.
getSerializer
public TypeSerializer getSerializer(XmlRpcStreamConfig pConfig,
Object pObject)
throws SAXException
- Description copied from interface:
TypeFactory
- Creates a serializer for the object
pObject
.
- Specified by:
getSerializer
in interface TypeFactory
- Overrides:
getSerializer
in class TypeFactoryImpl
- Parameters:
pConfig
- The request configuration.pObject
- The object being serialized.
- Returns:
- A serializer for
pObject
.
- Throws:
SAXException
- Creating the serializer failed.
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.