org.apache.tuscany.sca.provider
Interface ServiceBindingProvider


public interface ServiceBindingProvider

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

Version:
$Rev: 539359 $ $Date: 2007-05-18 11:06:21 +0100 (Fri, 18 May 2007) $

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.
 

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