org.apache.tuscany.sca.provider
Interface ServiceBindingProvider

All Known Subinterfaces:
ServiceBindingProviderRRB
All Known Implementing Classes:
Axis2SCAServiceBindingProvider, Axis2ServiceBindingProvider, CorbaSCAServiceBindingProvider, CorbaServiceBindingProvider, HTTPServiceBindingProvider, JMSBindingServiceBindingProvider, JSONRPCServiceBindingProvider, NotificationServiceBindingProvider, RMIServiceBindingProvider, RuntimeSCAServiceBindingProvider

public interface ServiceBindingProvider

A service binding can optionally implement this interface to tie into the Tuscany SCA runtime


Method Summary
 InterfaceContract getBindingInterfaceContract()
          Get the effective interface contract imposed by the binding.
 void start()
          This method will be invoked when the component service binding is activated.
 void stop()
          This method will be invoked when the component service binding is deactivated.
 boolean supportsOneWayInvocation()
          For bindings that invoke one-way callback operations asynchronously, there is no need to perform a thread switch before calling the invoker.
 

Method Detail

start

void start()
This method will be invoked when the component service binding is activated.


stop

void stop()
This method will be invoked when the component service binding is deactivated.


getBindingInterfaceContract

InterfaceContract getBindingInterfaceContract()
Get the effective interface contract imposed by the binding. For example, it will be interface contract introspected from the WSDL portType used by the endpoint for a WebService binding.

Returns:
The effective interface contract, if null is returned, the interface contract for the component service will be used

supportsOneWayInvocation

boolean supportsOneWayInvocation()
For bindings that invoke one-way callback operations asynchronously, there is no need to perform a thread switch before calling the invoker. This method indicates whether the binding has this capability.

Returns:
true if the callback invoker is able to invoke one-way operations asynchronously, false if all invocations are synchronous