tuscany-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raymond Feng" <enjoyj...@gmail.com>
Subject Re: Bypassing unnecessary transforms by Tuscany databinding framework
Date Wed, 06 Feb 2008 17:02:35 GMT
I was initially thinking about the interceptors. But I realized that service 
binding providers usually don't add an interceptor to the invocation chain. 
Instead, they register a listener to the binding protocol layer to route the 
call into SCA. If the service provider receives data from a transport and it 
knows the data won't be mutated by reference, it should be able to express 
it to help the runtime to bypass PBV.

Thanks,
Raymond

----- Original Message ----- 
From: "Jean-Sebastien Delfino" <jsdelfino@apache.org>
To: <tuscany-dev@ws.apache.org>
Sent: Tuesday, February 05, 2008 5:33 PM
Subject: Re: Bypassing unnecessary transforms by Tuscany databinding 
framework


> Raymond Feng wrote:
>> Let me try to propose the following fix:
>>
>> 1) Add new interface such as PassByValueProvider (please help me with a 
>> better name) to the SPI.
>>
>> public interface PassByValueProvider {
>>    /**
>>     * Indicate if the provider will enforce the pass-by-value semantics
>>     */
>>    boolean isPassByValueEnforced(Operation op);
>> }
>>
> [snip]
>
> How about having the interceptors optionally implement that kind of 
> interface instead of the providers?
>
> -- 
> Jean-Sebastien
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Mime
View raw message