com.sun.tools.ws.spi
Class WSToolsObjectFactory

java.lang.Object
  extended by com.sun.tools.ws.spi.WSToolsObjectFactory

public abstract class WSToolsObjectFactory
extends java.lang.Object

Singleton abstract factory used to produce JAX-WS tools related objects.


Constructor Summary
WSToolsObjectFactory()
           
 
Method Summary
static WSToolsObjectFactory newInstance()
          Obtain an instance of a factory.
abstract  boolean wsgen(java.io.OutputStream logStream, com.sun.xml.ws.api.server.Container container, java.lang.String[] args)
          Invokes wsgen on the endpoint implementation, and generates the necessary artifacts like wrapper, exception bean classes etc.
 boolean wsgen(java.io.OutputStream logStream, java.lang.String[] args)
          Invokes wsgen on the endpoint implementation, and generates the necessary artifacts like wrapper, exception bean classes etc.
abstract  boolean wsimport(java.io.OutputStream logStream, com.sun.xml.ws.api.server.Container container, java.lang.String[] args)
          Invokes wsimport on the wsdl URL argument, and generates the necessary portable artifacts like SEI, Service, Bean classes etc.
 boolean wsimport(java.io.OutputStream logStream, java.lang.String[] args)
          Invokes wsimport on the wsdl URL argument, and generates the necessary portable artifacts like SEI, Service, Bean classes etc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSToolsObjectFactory

public WSToolsObjectFactory()
Method Detail

newInstance

public static WSToolsObjectFactory newInstance()
Obtain an instance of a factory. Don't worry about synchronization(at the most, one more factory is created).


wsimport

public abstract boolean wsimport(java.io.OutputStream logStream,
                                 com.sun.xml.ws.api.server.Container container,
                                 java.lang.String[] args)
Invokes wsimport on the wsdl URL argument, and generates the necessary portable artifacts like SEI, Service, Bean classes etc.

Parameters:
logStream - Stream used for reporting log messages like errors, warnings etc
container - gives an environment for tool if it is run during appserver deployment
args - arguments with various options and wsdl url
Returns:
true if there is no error, otherwise false

wsimport

public boolean wsimport(java.io.OutputStream logStream,
                        java.lang.String[] args)
Invokes wsimport on the wsdl URL argument, and generates the necessary portable artifacts like SEI, Service, Bean classes etc.

Returns:
true if there is no error, otherwise false
See Also:
#wsimport(OutputStream, Container, String[])}

wsgen

public abstract boolean wsgen(java.io.OutputStream logStream,
                              com.sun.xml.ws.api.server.Container container,
                              java.lang.String[] args)
Invokes wsgen on the endpoint implementation, and generates the necessary artifacts like wrapper, exception bean classes etc.

Parameters:
logStream - Stream used for reporting log messages like errors, warnings etc
container - gives an environment for tool if it is run during appserver deployment
args - arguments with various options and endpoint class
Returns:
true if there is no error, otherwise false

wsgen

public boolean wsgen(java.io.OutputStream logStream,
                     java.lang.String[] args)
Invokes wsgen on the endpoint implementation, and generates the necessary artifacts like wrapper, exception bean classes etc.

Returns:
true if there is no error, otherwise false
See Also:
#wsgen(OutputStream, Container, String[])}


Copyright ? 2005 Sun Microsystems, Inc. All Rights Reserved.