>
>>
>> Quick question: if I need multiple databindings on an interface, do I need
>> to clone that interface model in my SCDL processor (one per databinding), or
>> can multiple databindings co-exist on the same instance?
>
> After digging through the data binding code, looks like the answer is that
> the interface must be cloned. I adjusted the sample SCDL processor to do
> that.
>

Slow answer (sorry about that): yes you have to clone I believe. The
databinding required at the binding is set into the interface by the
binding so each binding needs it's own copy of the interface. When the
DatabindingRuntimeWireProcessor (see core-databinding) looks at each
wire (there is a wire per service interface operation per binding) it
compares the binding interface databinding with the implementation
interface databinding and adds a databinding inteceptor accordingly.

Regards

Simon

-- 
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com

Reply via email to