org.codehaus.xfire.loom
Class DefaultServiceFactory

java.lang.Object
  extended by AbstractLogEnabled
      extended by org.codehaus.xfire.loom.DefaultServiceFactory
All Implemented Interfaces:
ServiceFactory

public class DefaultServiceFactory
extends AbstractLogEnabled
implements ServiceFactory

Default implementation of a ServiceFactory

Author:
peter royal

Constructor Summary
DefaultServiceFactory()
           
 
Method Summary
 void addIgnoredMethods(java.lang.String className)
           
 Service create(java.lang.Class clazz)
          Create a service from the specified class.
 Service create(java.lang.Class clazz, java.util.Map properties)
          Create a service from the specified class.
 Service create(java.lang.Class clazz, javax.xml.namespace.QName service, java.net.URL wsdlUrl, java.util.Map properties)
          Create a service from a WSDL file.
 Service create(java.lang.Class clazz, java.lang.String name, java.lang.String namespace, java.util.Map properties)
          Create a service from the specified class.
protected  TransportManager getTransportManager()
           
protected  TypeMappingRegistry getTypeMappingRegistry()
           
 void initialize()
           
 void service(ServiceManager manager)
           
protected  void setFactory(ObjectServiceFactory factory)
           
 
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(ServiceManager manager)
             throws ServiceException
Throws:
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
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.

addIgnoredMethods

public void addIgnoredMethods(java.lang.String className)

create

public Service create(java.lang.Class clazz,
                      javax.xml.namespace.QName service,
                      java.net.URL wsdlUrl,
                      java.util.Map properties)
Description copied from interface: ServiceFactory
Create a service from a WSDL file.

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

create

public Service create(java.lang.Class clazz,
                      java.util.Map properties)
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.
properties - Properties to set on the service and use in construction.
Returns:
The service.

create

public Service create(java.lang.Class clazz,
                      java.lang.String name,
                      java.lang.String namespace,
                      java.util.Map properties)
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.
properties - Service specific properties which the ServiceFactory will use to create the service.
Returns:
The service.


Copyright © 2004-2006 Envoi Solutions LLC. All Rights Reserved.