Novell exteNd Web Services SDK API

com.sssw.jbroker.web
Class ServiceFactory

java.lang.Object
  extended bycom.sssw.jbroker.web.ServiceFactory

public final class ServiceFactory
extends Object

Factory for instantiating ServiceObject stubs.


Constructor Summary
ServiceFactory()
           
 
Method Summary
static ServiceObject create(Class serviceInterface)
          Create a ServiceObject for the given interface.
static ServiceObject create(Class serviceInterface, Binding binding)
          Create a ServiceObject for the given interface.
static ServiceObject create(Class serviceInterface, Binding binding, QName portType)
          Create a ServiceObject for the given interface.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceFactory

public ServiceFactory()
Method Detail

create

public static ServiceObject create(Class serviceInterface)
                            throws ServiceException
Create a ServiceObject for the given interface. The binding and port type are already in the generated stub.

Parameters:
serviceInterface - the service remote class
Throws:
ServiceException

create

public static ServiceObject create(Class serviceInterface,
                                   Binding binding)
                            throws ServiceException
Create a ServiceObject for the given interface. The port type is assumed to be already in the generated stub. The given binding is set as the current binding.

Parameters:
serviceInterface - the service remote class
binding - the service object's current binding
Throws:
ServiceException

create

public static ServiceObject create(Class serviceInterface,
                                   Binding binding,
                                   QName portType)
                            throws ServiceException
Create a ServiceObject for the given interface. The given binding is set as the current binding. If the generated stub class is found, the specified portType is ignored. If the generated stub class is not found then if the porttype is specified and the Java runtime (JRE 1.3 or higher) has proxy support, a dynamic stub is created.

Parameters:
serviceInterface - the service remote class
binding - the service object's current binding
portType - the service object's port type
Throws:
ServiceException

Novell exteNd Web Services SDK API

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2003 Novell, Inc. All Rights Reserved.