public interface ContractMatcherExtension<S extends org.fabric3.api.model.type.contract.ServiceContract,T extends org.fabric3.api.model.type.contract.ServiceContract>
ServiceContracts are compatible using a particular mapping, for example, WSDL-to-Java.| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<S> |
getSource()
Returns the contract type this extension maps from
|
java.lang.Class<T> |
getTarget()
Returns the contract type this extension maps to
|
MatchResult |
isAssignableFrom(S source,
T target,
boolean reportErrors)
Determines if two
ServiceContracts are compatible for wiring. |
java.lang.Class<S> getSource()
java.lang.Class<T> getTarget()
MatchResult isAssignableFrom(S source, T target, boolean reportErrors)
ServiceContracts are compatible for wiring. Some interface languages, such as Java, allow for inheritance. In these cases,
compatibility will include checking if the source contract is a super type of the target contract.source - the source contract. Typically, this is the contract specified by a component reference.target - the target contract. Typically this is the contract specified by a service.reportErrors - true if errors should be reported in the result