org.apache.tuscany.sca.provider
Interface ImplementationProvider


public interface ImplementationProvider

A component implementation can implement this interface in order to tie into the Tuscany runtime

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

Method Summary
 Invoker createCallbackInvoker(Operation operation)
          Create an invoker to call back to the given component
 Invoker createInvoker(RuntimeComponentService service, Operation operation)
          Create an invoker for the component implementation in the invocation chain.
 void start()
          This method will be invoked when the component implementation is activated.
 void stop()
          This method will be invoked when the component implementation is deactivated.
 

Method Detail

start

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


stop

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


createInvoker

Invoker createInvoker(RuntimeComponentService service,
                      Operation operation)
Create an invoker for the component implementation in the invocation chain. The invoker will be responsible for calling the implementation logic for the given component.

Parameters:
service - The component service
operation - The operation that the interceptor will handle
Returns:
An invoker that handles the invocation logic, null should be returned if no invoker is required

createCallbackInvoker

Invoker createCallbackInvoker(Operation operation)
Create an invoker to call back to the given component

Parameters:
operation - The operation
Returns:
An invoker that handles the invocation logic, null should be returned if no invoker is required