org.codehaus.xfire.loom
Class DefaultServiceFactory

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.codehaus.xfire.loom.DefaultServiceFactory
All Implemented Interfaces:
org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, ServiceFactory

public class DefaultServiceFactory
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements ServiceFactory, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.activity.Initializable

Default implementation of a ServiceFactory

Author:
peter royal

Constructor Summary
DefaultServiceFactory()
           
 
Method Summary
 Service create(java.lang.Class clazz)
          Create a service from the specified class.
 Service create(java.lang.Class clazz, SoapVersion version, java.lang.String style, java.lang.String use)
          Create a service from the specified class.
 Service create(java.lang.Class clazz, java.lang.String name, java.lang.String namespace, SoapVersion version, java.lang.String style, java.lang.String use, java.lang.String encodingStyleURI)
          Create a service from the specified class.
 Service create(java.lang.Class clazz, TypeMapping tm, java.net.URL wsdlUrl)
          Create a service from a WSDL file.
protected  TransportManager getTransportManager()
           
protected  TypeMappingRegistry getTypeMappingRegistry()
           
 void initialize()
           
 void service(org.apache.avalon.framework.service.ServiceManager manager)
           
protected  void setFactory(ObjectServiceFactory factory)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultServiceFactory

public DefaultServiceFactory()
Method Detail

service

public void service(org.apache.avalon.framework.service.ServiceManager manager)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException

getTransportManager

protected final TransportManager getTransportManager()

getTypeMappingRegistry

protected final TypeMappingRegistry getTypeMappingRegistry()

setFactory

protected final void setFactory(ObjectServiceFactory factory)

initialize

public void initialize()
                throws java.lang.Exception
Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable
Throws:
java.lang.Exception

create

public Service create(java.lang.Class clazz)
Description copied from interface: ServiceFactory
Create a service from the specified class.

Specified by:
create in interface ServiceFactory
Parameters:
clazz - The service class used to populate the operations and parameters.
Returns:
The service.

create

public Service create(java.lang.Class clazz,
                      java.lang.String name,
                      java.lang.String namespace,
                      SoapVersion version,
                      java.lang.String style,
                      java.lang.String use,
                      java.lang.String encodingStyleURI)
Description copied from interface: ServiceFactory
Create a service from the specified class.

Specified by:
create in interface ServiceFactory
Parameters:
clazz - The service class used to populate the operations and parameters.
name - The name of the service.
namespace - The default namespace of the service.
version - The SoapVersion.
style - The service style.
use - The service use.
encodingStyleURI - The encoding style to use
Returns:
The service.
See Also:
SoapConstants, Soap11, Soap12, SoapVersion

create

public Service create(java.lang.Class clazz,
                      TypeMapping tm,
                      java.net.URL wsdlUrl)
               throws java.lang.Exception
Description copied from interface: ServiceFactory
Create a service from a WSDL file. NOTE: This probably doesn't work yet.

Specified by:
create in interface ServiceFactory
Parameters:
clazz - The service class for the wsdl.
wsdlUrl - The WSDL URL.
Returns:
Throws:
java.lang.Exception

create

public Service create(java.lang.Class clazz,
                      SoapVersion version,
                      java.lang.String style,
                      java.lang.String use)
Description copied from interface: ServiceFactory
Create a service from the specified class.

Specified by:
create in interface ServiceFactory
Parameters:
clazz - The service class used to populate the operations and parameters.
version - The SoapVersion.
style - The service style.
use - The service use.
Returns:
The service.
See Also:
SoapConstants, Soap11, Soap12, SoapVersion