Fix to make implementation-web references work where the interface contract doesn't get set. Still looking into why endpoint broke implementation-web but this works round the problem for the time being.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@756472 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
69f8529dfd
commit
e962b3bbdf
1 changed files with 8 additions and 0 deletions
|
@ -759,6 +759,14 @@ public class CompositeActivatorImpl2 implements CompositeActivator {
|
||||||
sourceContract = componentTypeRef.getInterfaceContract();
|
sourceContract = componentTypeRef.getInterfaceContract();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO - EPR - interface contract seems to be null in the implementation.web
|
||||||
|
// case. Not introspecting the CT properly?
|
||||||
|
if (sourceContract == null){
|
||||||
|
// take the contract from the service to which the reference is connected
|
||||||
|
sourceContract = endpointReference.getTargetEndpoint().getInterfaceContract();
|
||||||
|
reference.setInterfaceContract(sourceContract);
|
||||||
|
}
|
||||||
|
|
||||||
endpointReference.setInterfaceContract(sourceContract.makeUnidirectional(false));
|
endpointReference.setInterfaceContract(sourceContract.makeUnidirectional(false));
|
||||||
|
|
||||||
/* TODO - EPR should have been done previously during matching
|
/* TODO - EPR should have been done previously during matching
|
||||||
|
|
Loading…
Add table
Reference in a new issue