org.apache.cxf.binding
Class AbstractBindingFactory

java.lang.Object
  extended by org.apache.cxf.binding.AbstractBindingFactory
All Implemented Interfaces:
BindingFactory, WSDLBindingFactory
Direct Known Subclasses:
HttpBindingFactory, JBIBindingFactory, ObjectBindingFactory, SoapBindingFactory, XMLBindingFactory

public abstract class AbstractBindingFactory
extends java.lang.Object
implements BindingFactory, WSDLBindingFactory


Field Summary
static java.lang.String DATABINDING_DISABLED
           
 
Constructor Summary
AbstractBindingFactory()
           
 
Method Summary
 void addListener(Destination d, Endpoint e)
          Set the destionation's message observer which is created by using the endpoint to listen the incoming message
protected  void addMessageFromBinding(javax.wsdl.extensions.ExtensibilityElement ext, BindingOperationInfo bop, boolean isInput)
           
 BindingInfo createBindingInfo(ServiceInfo service, javax.wsdl.Binding binding, java.lang.String ns)
          Copies extensors from the Binding to BindingInfo.
 BindingInfo createBindingInfo(ServiceInfo service, java.lang.String namespace, java.lang.Object config)
          Creates a "default" BindingInfo object for the service.
 BindingInfo createBindingInfo(Service service, java.lang.String namespace, java.lang.Object config)
          Creates a "default" BindingInfo object for the service.
 java.util.Collection<java.lang.String> getActivationNamespaces()
           
 Bus getBus()
           
protected  BindingInfo initializeBindingInfo(ServiceInfo service, javax.wsdl.Binding binding, BindingInfo bi)
           
 void setActivationNamespaces(java.util.Collection<java.lang.String> activationNamespaces)
           
 void setBus(Bus bus)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.binding.BindingFactory
createBinding
 

Field Detail

DATABINDING_DISABLED

public static final java.lang.String DATABINDING_DISABLED
See Also:
Constant Field Values
Constructor Detail

AbstractBindingFactory

public AbstractBindingFactory()
Method Detail

createBindingInfo

public BindingInfo createBindingInfo(ServiceInfo service,
                                     java.lang.String namespace,
                                     java.lang.Object config)
Creates a "default" BindingInfo object for the service. Called by createBindingInfo(Service service, String binding, Object config) to actually create the BindingInfo. Can return a subclass which can then process the extensors within the subclass.

Parameters:
service -
Returns:

createBindingInfo

public BindingInfo createBindingInfo(Service service,
                                     java.lang.String namespace,
                                     java.lang.Object config)
Creates a "default" BindingInfo object for the service. Can return a subclass which can then process the extensors within the subclass. By default, just creates it for the first ServiceInfo in the service

Specified by:
createBindingInfo in interface BindingFactory
config - - binding specific configuration object
Returns:
the BindingInfo object

createBindingInfo

public BindingInfo createBindingInfo(ServiceInfo service,
                                     javax.wsdl.Binding binding,
                                     java.lang.String ns)
Copies extensors from the Binding to BindingInfo.

Specified by:
createBindingInfo in interface WSDLBindingFactory
Parameters:
service -
binding -
Returns:

initializeBindingInfo

protected BindingInfo initializeBindingInfo(ServiceInfo service,
                                            javax.wsdl.Binding binding,
                                            BindingInfo bi)

addMessageFromBinding

protected void addMessageFromBinding(javax.wsdl.extensions.ExtensibilityElement ext,
                                     BindingOperationInfo bop,
                                     boolean isInput)

addListener

public void addListener(Destination d,
                        Endpoint e)
Description copied from interface: BindingFactory
Set the destionation's message observer which is created by using the endpoint to listen the incoming message

Specified by:
addListener in interface BindingFactory
Parameters:
d - the destination that will be set the MessageObserver
e - the endpoint to build up the MessageObserver

getBus

public Bus getBus()

setBus

public void setBus(Bus bus)

getActivationNamespaces

public java.util.Collection<java.lang.String> getActivationNamespaces()

setActivationNamespaces

public void setActivationNamespaces(java.util.Collection<java.lang.String> activationNamespaces)


Apache CXF