com.sun.xml.ws.api.databinding
Class DatabindingFactory

java.lang.Object
  extended by org.jvnet.ws.databinding.DatabindingFactory
      extended by com.sun.xml.ws.api.databinding.DatabindingFactory
Direct Known Subclasses:
DatabindingFactoryImpl

public abstract class DatabindingFactory
extends org.jvnet.ws.databinding.DatabindingFactory

WsFactory is the entry point of all the ws-databinding APIs. A WsFactory instance can be used to create WsTool, WsRuntime, XsTool, and XsRuntime instances.

Following is an example that creates a WsTool which provides the operations for "WSDL to JAVA" and "JAVA to WSDL":
       WsFactory wsfac = WsFactory.newInstance();
       WsTool tool = wsfac.createTool();
       GenerationStatus status = tool.generateWsdl(javaToWsdkInfo);
 
Following is an example that creates a WsRuntime which provides the operations to serialize/deserialize a JavaCallInfo to/from a SOAP message:
       WsFactory wsfac = WsFactory.newInstance();
       WsRuntime rt = wsfac.createRuntime(wsRuntimeConfig);
 

See Also:
Databinding

Field Summary
(package private) static String ImplClass
          The default implementation class name.
 
Constructor Summary
DatabindingFactory()
           
 
Method Summary
abstract  org.jvnet.ws.databinding.Databinding createRuntime(DatabindingConfig config)
          Creates a new instance of a WsRuntime which is initialized with the specified configuration object.
static DatabindingFactory newInstance()
          Create a new instance of a WsFactory.
abstract  Map<String,Object> properties()
          Access properties on the WsFactory instance.
 
Methods inherited from class org.jvnet.ws.databinding.DatabindingFactory
createBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ImplClass

static final String ImplClass
The default implementation class name.

Constructor Detail

DatabindingFactory

public DatabindingFactory()
Method Detail

createRuntime

public abstract org.jvnet.ws.databinding.Databinding createRuntime(DatabindingConfig config)
Creates a new instance of a WsRuntime which is initialized with the specified configuration object.

Parameters:
config - the EndpointRuntimeConfig to init this WsRuntime
Returns:
New instance of a WsRuntime

properties

public abstract Map<String,Object> properties()
Access properties on the WsFactory instance.

Specified by:
properties in class org.jvnet.ws.databinding.DatabindingFactory
Returns:
properties of this WsFactory

newInstance

public static DatabindingFactory newInstance()
Create a new instance of a WsFactory. This static method creates a new factory instance. Once an application has obtained a reference to a WsFactory it can use the factory to configure and obtain WsTool and WsRuntime instances.

Returns:
New instance of a WsFactory


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.