>
> 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