I ran into the same issue too. In addition to the model, we don't honor the 
appliesTo (in this case, it only applies to certain implementation types).

Thanks,
Raymond
________________________________________________________________ 
Raymond Feng
[email protected]
Apache Tuscany PMC member and committer: tuscany.apache.org
Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
Personal Web Site: www.enjoyjava.com
________________________________________________________________

On Jun 15, 2011, at 6:42 AM, Simon Laws wrote:

>> 
>> As a follow up I just noticed that when the implementation policy
>> interceptors are added to the wire in
>> RuntimeEndpointImpl.addImplementationInterceptor() it does the
>> following.
>> 
>>        // TODO - EPR - don't we need to get the policy from the right
>> level in the
>>        //              model rather than the leafmost level
>>        List<PolicyProvider> pps =
>> ((RuntimeComponent)component).getPolicyProviders();
>>        if (pps != null) {
>>            for (PolicyProvider p : pps) {
>>                Interceptor interceptor = p.createInterceptor(operation);
>>                if (interceptor != null) {
>>                    chain.addInterceptor(interceptor);
>>                }
>>            }
>>        }
>> 
>> I'm pretty sure though that the code earlier on in the processing
>> isn't promoting implementation policy to the component correctly.
>> Maybe I'm just looking in the wrong place. A test case is called for.
>> 
>> Simon
>> 
>> --
>> Apache Tuscany committer: tuscany.apache.org
>> Co-author of a book about Tuscany and SCA: tuscanyinaction.com
>> 
> 
> I added some implementation policy to a test I'm writing and sure
> enough it doesn't work properly. I've created TUSCANY-3876 to track.
> 
> Simon
> 
> -- 
> Apache Tuscany committer: tuscany.apache.org
> Co-author of a book about Tuscany and SCA: tuscanyinaction.com

Reply via email to