org.apache.tuscany.sca.binding.jms.provider
Class JMSBindingServiceBindingProvider

java.lang.Object
  extended by org.apache.tuscany.sca.binding.jms.provider.JMSBindingServiceBindingProvider
All Implemented Interfaces:
ServiceBindingProvider, ServiceBindingProviderRRB

public class JMSBindingServiceBindingProvider
extends java.lang.Object
implements ServiceBindingProviderRRB

Implementation of the JMS service binding provider.


Constructor Summary
JMSBindingServiceBindingProvider(RuntimeComponent component, RuntimeComponentService service, Binding targetBinding, JMSBinding binding, WorkScheduler workScheduler, ExtensionPointRegistry extensionPoints, JMSResourceFactory jmsResourceFactory)
           
 
Method Summary
 void configureBindingChain(RuntimeWire runtimeWire)
           
 InterfaceContract getBindingInterfaceContract()
          Get the effective interface contract imposed by the binding.
 java.lang.String getDestinationName()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSBindingServiceBindingProvider

public JMSBindingServiceBindingProvider(RuntimeComponent component,
                                        RuntimeComponentService service,
                                        Binding targetBinding,
                                        JMSBinding binding,
                                        WorkScheduler workScheduler,
                                        ExtensionPointRegistry extensionPoints,
                                        JMSResourceFactory jmsResourceFactory)
Method Detail

getBindingInterfaceContract

public InterfaceContract getBindingInterfaceContract()
Description copied from interface: ServiceBindingProvider
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.

Specified by:
getBindingInterfaceContract in interface ServiceBindingProvider
Returns:
The effective interface contract, if null is returned, the interface contract for the component service will be used

supportsOneWayInvocation

public boolean supportsOneWayInvocation()
Description copied from interface: ServiceBindingProvider
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 ServiceBindingProvider
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: ServiceBindingProvider
This method will be invoked when the component service binding is activated.

Specified by:
start in interface ServiceBindingProvider

stop

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

Specified by:
stop in interface ServiceBindingProvider

getDestinationName

public java.lang.String getDestinationName()

configureBindingChain

public void configureBindingChain(RuntimeWire runtimeWire)
Specified by:
configureBindingChain in interface ServiceBindingProviderRRB