On Thu, Jun 25, 2009 at 3:23 PM, Scott Kurz<[email protected]> wrote: > 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 >
Hi Scott And is the suggestion here to test, inside service.getJavaInterfaceContract(), that there is a Java interface contract available? We either throw an error if there isn't or generate one from WSDL (we don't have this generated code in the runtime now). Simon
