org.apache.tuscany.sca.implementation.notification
Class NotificationImplementationProvider

java.lang.Object
  extended by org.apache.tuscany.sca.implementation.notification.NotificationImplementationProvider
All Implemented Interfaces:
ImplementationProvider

public class NotificationImplementationProvider
extends java.lang.Object
implements ImplementationProvider


Constructor Summary
NotificationImplementationProvider(RuntimeComponent component, NotificationImplementationImpl implementation)
          Constructs a new Notification implementation provider.
 
Method Summary
 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.
 boolean supportsOneWayInvocation()
          For bindings that invoke one-way callback operations asynchronously, there is no need to perform a thread switch before calling the invoker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationImplementationProvider

public NotificationImplementationProvider(RuntimeComponent component,
                                          NotificationImplementationImpl implementation)
Constructs a new Notification implementation provider.

Method Detail

createInvoker

public Invoker createInvoker(RuntimeComponentService service,
                             Operation operation)
Description copied from interface: ImplementationProvider
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.

Specified by:
createInvoker in interface ImplementationProvider
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

supportsOneWayInvocation

public boolean supportsOneWayInvocation()
Description copied from interface: ImplementationProvider
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.

Specified by:
supportsOneWayInvocation in interface ImplementationProvider
Returns:
true if the callback invoker is able to invoke one-way operations asynchronously, false if all invocations are synchronous

start

public void start()
Description copied from interface: ImplementationProvider
This method will be invoked when the component implementation is activated.

Specified by:
start in interface ImplementationProvider

stop

public void stop()
Description copied from interface: ImplementationProvider
This method will be invoked when the component implementation is deactivated.

Specified by:
stop in interface ImplementationProvider