org.codehaus.xfire.service.object
Class ObjectServiceBuilder

java.lang.Object
  extended by org.codehaus.xfire.service.object.ObjectServiceBuilder
All Implemented Interfaces:
ServiceBuilder

public class ObjectServiceBuilder
extends java.lang.Object
implements ServiceBuilder

Author:
Dan Diephouse

Constructor Summary
ObjectServiceBuilder()
           
ObjectServiceBuilder(org.codehaus.xfire.XFire xfire)
           
ObjectServiceBuilder(org.codehaus.xfire.XFire xfire, TypeMappingRegistry registry)
           
 
Method Summary
protected  void addOperation(DefaultObjectService service, java.lang.reflect.Method method)
           
 org.codehaus.xfire.service.Service create(java.lang.Class clazz)
          Create a service from the specified class.
 org.codehaus.xfire.service.Service create(java.lang.Class clazz, org.codehaus.xfire.soap.SoapVersion version, java.lang.String style, java.lang.String use)
          Create a service from the specified class.
 org.codehaus.xfire.service.Service create(java.lang.Class clazz, java.lang.String name, java.lang.String namespace, org.codehaus.xfire.soap.SoapVersion version, java.lang.String style, java.lang.String use)
          Create a service from the specified class.
 org.codehaus.xfire.service.Service create(java.lang.Class clazz, TypeMapping tm, java.net.URL wsdlUrl)
          Create a service from a WSDL file.
protected  void initializeOperations(DefaultObjectService service)
           
protected  void initializeTypeMapping(DefaultObjectService service)
          Creates a type mapping for this class and registers it with the TypeMappingRegistry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectServiceBuilder

public ObjectServiceBuilder()

ObjectServiceBuilder

public ObjectServiceBuilder(org.codehaus.xfire.XFire xfire)

ObjectServiceBuilder

public ObjectServiceBuilder(org.codehaus.xfire.XFire xfire,
                            TypeMappingRegistry registry)
Method Detail

create

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

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

create

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

Specified by:
create in interface ServiceBuilder
Parameters:
clazz -
Returns:

create

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

Specified by:
create in interface ServiceBuilder
Parameters:
clazz -
version -
style -
use -
Returns:
See Also:
SoapConstants, Soap11, Soap12, SoapVersion

create

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

Specified by:
create in interface ServiceBuilder
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.
Returns:
The service.
See Also:
SoapConstants, Soap11, Soap12, SoapVersion

initializeOperations

protected void initializeOperations(DefaultObjectService service)

addOperation

protected void addOperation(DefaultObjectService service,
                            java.lang.reflect.Method method)

initializeTypeMapping

protected void initializeTypeMapping(DefaultObjectService service)
Creates a type mapping for this class and registers it with the TypeMappingRegistry. This needs to be called before initializeOperations().



Copyright © 2004-2005 Codehaus. All Rights Reserved.