org.apache.tuscany.sca.binding.sca.axis2.impl
Class Axis2SCAReferenceBindingProvider

java.lang.Object
  extended by org.apache.tuscany.sca.binding.sca.axis2.impl.Axis2SCAReferenceBindingProvider
All Implemented Interfaces:
ReferenceBindingProvider

public class Axis2SCAReferenceBindingProvider
extends java.lang.Object
implements ReferenceBindingProvider

The reference binding provider for the remote sca binding implementation. Relies on the binding-ws-axis implementation for sending messages to remote services to this provider just uses the ws-axis provider.


Constructor Summary
Axis2SCAReferenceBindingProvider(RuntimeComponent component, RuntimeComponentReference reference, DistributedSCABinding binding, ExtensionPointRegistry extensionPoints, java.util.List<PolicyHandlerTuple> policyHandlerClassnames)
           
 
Method Summary
 Invoker createInvoker(Operation operation)
          Create an invoker for the reference binding in the invocation chain.
 InterfaceContract getBindingInterfaceContract()
          Get the effective interface contract imposed by the binding.
 EndpointReference getCallbackEndpoint()
          Retrieves the URI of the callback service (that this reference has created) returns null if there is no callback service for the sca binding
 RuntimeComponent getComponent()
           
 RuntimeComponentReference getComponentReference()
           
 SCABinding getSCABinding()
           
 EndpointReference getServiceEndpoint()
          Uses the distributed domain service discovery feature to locate remote service endpoints
 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.
 boolean supportsOneWayInvocation()
          For bindings that invoke one-way 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

Axis2SCAReferenceBindingProvider

public Axis2SCAReferenceBindingProvider(RuntimeComponent component,
                                        RuntimeComponentReference reference,
                                        DistributedSCABinding binding,
                                        ExtensionPointRegistry extensionPoints,
                                        java.util.List<PolicyHandlerTuple> policyHandlerClassnames)
Method Detail

getBindingInterfaceContract

public InterfaceContract getBindingInterfaceContract()
Description copied from interface: ReferenceBindingProvider
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 ReferenceBindingProvider
Returns:
The effective interface contract, if null is returned, the interface contract for the component reference will be used

supportsOneWayInvocation

public boolean supportsOneWayInvocation()
Description copied from interface: ReferenceBindingProvider
For bindings that invoke one-way 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 ReferenceBindingProvider
Returns:
true if the binding invoker is able to invoke one-way operations asynchronously, false if all invocations are synchronous

createInvoker

public Invoker createInvoker(Operation operation)
Description copied from interface: ReferenceBindingProvider
Create an invoker for the reference binding in the invocation chain. The invoker is responsible for making the outbound invocation over the binding protocol.

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

getServiceEndpoint

public EndpointReference getServiceEndpoint()
Uses the distributed domain service discovery feature to locate remote service endpoints

Returns:
An EPR for the target service that this reference refers to

getCallbackEndpoint

public EndpointReference getCallbackEndpoint()
Retrieves the URI of the callback service (that this reference has created) returns null if there is no callback service for the sca binding

Returns:
the callback endpoint

getSCABinding

public SCABinding getSCABinding()

getComponent

public RuntimeComponent getComponent()

getComponentReference

public RuntimeComponentReference getComponentReference()

start

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

Specified by:
start in interface ReferenceBindingProvider

stop

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

Specified by:
stop in interface ReferenceBindingProvider