org.apache.xmlrpc.common

Class TypeFactoryImpl

Implemented Interfaces:
TypeFactory
Known Direct Subclasses:
JaxbTypeFactory

public class TypeFactoryImpl
extends java.lang.Object
implements TypeFactory

Default implementation of a type factory.

Constructor Summary

TypeFactoryImpl(XmlRpcController pController)
Creates a new instance.

Method Summary

XmlRpcController
getController()
Returns the controller, which operates the type factory.
TypeParser
getParser(XmlRpcStreamConfig pConfig, NamespaceContextImpl pContext, String pURI, String pLocalName)
TypeSerializer
getSerializer(XmlRpcStreamConfig pConfig, Object pObject)

Constructor Details

TypeFactoryImpl

public TypeFactoryImpl(XmlRpcController pController)
Creates a new instance.
Parameters:
pController - The controller, which operates the type factory.

Method Details

getController

public XmlRpcController getController()
Returns the controller, which operates the type factory.
Returns:
The controller, an instance of XmlRpcClient, or XmlRpcServer.

getParser

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

getSerializer

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

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