public interface ContractMatcher
ServiceContracts are compatible for wiring. Specifically, tests whether the target contract can be converted to the
source contract type. Some interface languages, such as Java, allow for inheritance. In these cases, compatibility will include checking if a
widening conversion is possible from the target contract to source contract.
This service delegates to ContractMatcherExtensions for particular mappings such as WSDL-to-Java.| Modifier and Type | Method and Description |
|---|---|
MatchResult |
isAssignableFrom(org.fabric3.api.model.type.contract.ServiceContract source,
org.fabric3.api.model.type.contract.ServiceContract target,
boolean reportErrors)
Determines if two
ServiceContracts are compatible for wiring. |
MatchResult isAssignableFrom(org.fabric3.api.model.type.contract.ServiceContract source, org.fabric3.api.model.type.contract.ServiceContract target, boolean reportErrors)
ServiceContracts are compatible for wiring.source - the source contract. This is the contract specified by a component reference.target - the target contract. This is the contract specified by a service.reportErrors - true if errors should be reported in the result