|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tuscany.sca.interfacedef.impl.InterfaceContractMapperImpl
public class InterfaceContractMapperImpl
| Constructor Summary | |
|---|---|
InterfaceContractMapperImpl()
|
|
| Method Summary | |
|---|---|
boolean |
checkCompatibility(InterfaceContract source,
InterfaceContract target,
boolean ignoreCallback,
boolean silent)
|
boolean |
isCompatible(DataType source,
DataType target,
boolean remotable)
Test if the source data type is compatible with the target data type. |
boolean |
isCompatible(InterfaceContract source,
InterfaceContract target)
Check the compatibility of the source and the target interface contracts. |
boolean |
isCompatible(Interface source,
Interface target)
|
boolean |
isCompatible(Operation source,
Operation target,
boolean remotable)
Check if source operation is compatible with the target operation |
Operation |
map(Interface target,
Operation source)
Map the source operation to a compatible operation in the target interface |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InterfaceContractMapperImpl()
| Method Detail |
|---|
public boolean isCompatible(DataType source,
DataType target,
boolean remotable)
InterfaceContractMapper
isCompatible in interface InterfaceContractMappersource - The source data typetarget - The target data type
public boolean isCompatible(Operation source,
Operation target,
boolean remotable)
InterfaceContractMapper
isCompatible in interface InterfaceContractMappersource - The source operationtarget - The target operation
public boolean checkCompatibility(InterfaceContract source,
InterfaceContract target,
boolean ignoreCallback,
boolean silent)
throws IncompatibleInterfaceContractException
checkCompatibility in interface InterfaceContractMapperIncompatibleInterfaceContractException
public boolean isCompatible(Interface source,
Interface target)
isCompatible in interface InterfaceContractMapper
public boolean isCompatible(InterfaceContract source,
InterfaceContract target)
InterfaceContractMapperA wire may only connect a source to a target if the target implements an interface that is compatible with the interface required by the source. The source and the target are compatible if:
Please note this test is not symmetric: the success of isCompatible(A, B) does NOT imply isCompatible(B, A)
isCompatible in interface InterfaceContractMappersource - The source interface contracttarget - The target interface contract
public Operation map(Interface target,
Operation source)
InterfaceContractMapper
map in interface InterfaceContractMappertarget - The target interfacesource - The source operation
InterfaceContractMapper.map(org.apache.tuscany.sca.interfacedef.Interface,
org.apache.tuscany.sca.interfacedef.Operation)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||