org.apache.tuscany.sca.provider
Interface ReferenceBindingProvider


public interface ReferenceBindingProvider

A reference binding implementation can options 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
 Invoker createInvoker(Operation operation, boolean isCallback)
          Create an invoker for the reference binding in the invocation chain.
 InterfaceContract getBindingInterfaceContract()
          Get the effective interface contract imposed by the binding.
 void start()
          This method will be invoked when the component reference binding is activated.
 void stop()
          This method will be invoked when the component reference binding is deactivated.
 

Method Detail

start

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


stop

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


createInvoker

Invoker createInvoker(Operation operation,
                      boolean isCallback)
Create an invoker for the reference binding in the invocation chain. The invoker is responsible for making the outbound invocation over the binding protocol.

Parameters:
operation - The operation that the interceptor will handle
isCallback - A flag to tell if the operation is for the callback
Returns:
An invoker that handles the invocation logic, null should be returned if no invoker is required

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 reference will be used