At BeforeBeanDiscovery phase an interceptor binding could be added with an AnnotatedType instead of annotation class. This could allow to add annotations to existing annotation attributes.
For example this case is needed for annotations @CacheResult, @CacheRemoveEntry and @CacheRemoveAll from JSR-107 which haven't annotation attributes annotated with @NonBinding.
The method signature could be:
- BeforeBeanDiscovery#addInterceptorBinding(AnnotatedType<?> annotatedType, Annotation... bindingTypeDef)