openwebbeans icon indicating copy to clipboard operation
openwebbeans copied to clipboard

Support transitive InterceptorBinding on annotated types

Open jeanouii opened this issue 3 years ago • 1 comments

jeanouii avatar Oct 05 '22 11:10 jeanouii

@jeanouii what is not working as you'd expect right now?

edit: I looked at the unit test in detail and imo the current behaviour is perfectly fine:

we have

@OwbMethodBinding
@Interceptor
@Priority(1000 + 10)
// @ApplyOwbMethodBinding
static class OwbMethodInterceptor {...

and an Extension

    void registerInterceptorBindings(@Observes BeforeBeanDiscovery bbd, BeanManager bm) {
        bbd.addInterceptorBinding(new OwbMethodBindingInterceptorBindingAnnotatedType<>(bm.createAnnotatedType(ApplyOwbMethodBinding.class)));

        bbd.addAnnotatedType(bm.createAnnotatedType(OwbMethodInterceptor.class), OwbMethodInterceptor.class.getName());
    }

Now OWB is complaining that the OwbMethodInterceptor has no interceptor binding. And this is imo correct!

struberg avatar Oct 11 '22 09:10 struberg

no feedback, will close it for now

tandraschko avatar Jan 11 '24 13:01 tandraschko