org.apache.tuscany.spi.wire
Class WireServiceExtension
java.lang.Object
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) $
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 |
policyRegistry
protected PolicyBuilderRegistry policyRegistry
context
protected WorkContext context
WireServiceExtension
protected WireServiceExtension(WorkContext context,
PolicyBuilderRegistry policyRegistry)
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:
- 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.
- the order of the input and output types also MUST BE the
same.
- 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 comparetarget
- the target contract to compareignoreCallback
- Indicate the callback should be checked
- Throws:
IncompatibleServiceContractException
- if the two contracts don't match
-