Picking this thread up again, I wonder if a starting point might be to
define a new SPI that a binding could use to obtain a Java
InterfaceContract in the cases where we expect/require the
componentType IC to be Java.

E.g. in 
org.apache.tuscany.sca.binding.jms.wireformat.jmsobject.runtime.WireFormatJMSObjectServiceProvider
we have:

            List<Operation> opList =
service.getService().getInterfaceContract().getInterface().getOperations();

what if:

  service.getService().getInterfaceContract()

were replaced by:

  service.getJavaInterfaceContract()

I realize that's not exactly a giant leap forward in the
discussion....just didn't want to let the idea die as I've noticed
this is a very important step required to implement certain Tuscany
bindings correctly, but you just have to know this "trick" rather than
using a potentially clearer SPI.

Scott

Reply via email to