openwebbeans
openwebbeans copied to clipboard
Support transitive InterceptorBinding on annotated types
@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!
no feedback, will close it for now