Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.wire
Class WireServiceExtension

java.lang.Object
  extended by org.apache.tuscany.spi.wire.WireServiceExtension
All Implemented Interfaces:
WireService

public abstract class WireServiceExtension
extends Object
implements WireService

Base class for wire service extensions

Version:
$Rev: 453857 $ $Date: 2006-10-07 01:18:27 -0700 (Sat, 07 Oct 2006) $

Field Summary
protected  WorkContext context
           
protected  PolicyBuilderRegistry policyRegistry
           
 
Constructor Summary
protected WireServiceExtension(WorkContext context, PolicyBuilderRegistry policyRegistry)
           
 
Method Summary
 void checkCompatibility(ServiceContract<?> source, ServiceContract<?> target, boolean ignoreCallback)
          Compares two operations for wiring compatibility as defined by the SCA assembly specification, namely:

compatibility for the individual method is defined as compatibility of the signature, that is method name, input types, and output types MUST BE the same.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tuscany.spi.wire.WireService
createCallbackHandler, createCallbackProxy, createHandler, createInboundChain, createOutboundChain, createProxy, createWire, createWire, createWires, createWires, createWires
 

Field Detail

policyRegistry

protected PolicyBuilderRegistry policyRegistry

context

protected WorkContext context
Constructor Detail

WireServiceExtension

protected WireServiceExtension(WorkContext context,
                               PolicyBuilderRegistry policyRegistry)
Method Detail

checkCompatibility

public void checkCompatibility(ServiceContract<?> source,
                               ServiceContract<?> target,
                               boolean ignoreCallback)
                        throws IncompatibleServiceContractException
Compares two operations for wiring compatibility as defined by the SCA assembly specification, namely:

  1. compatibility for the individual method is defined as compatibility of the signature, that is method name, input types, and output types MUST BE the same.
  2. the order of the input and output types also MUST BE the same.
  3. the set of Faults and Exceptions expected by the source MUST BE the same or be a superset of those specified by the service.

Specified by:
checkCompatibility in interface WireService
Parameters:
source - the source contract to compare
target - the target contract to compare
ignoreCallback - Indicate the callback should be checked
Throws:
IncompatibleServiceContractException - if the two contracts don't match

Apache Tuscany SCA Kernel Sub-Project

-