[
https://issues.apache.org/jira/browse/OWB-1017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14158094#comment-14158094
]
Antonin Stefanutti commented on OWB-1017:
-----------------------------------------
Hi Romain, indeed.
You can find another example here:
https://github.com/astefanutti/metrics-cdi/blob/07b365060d324ddee39af1368680ac944cdb947c/impl/src/main/java/io/astefanutti/metrics/cdi/MetricsExtension.java#L60
In that example, the need is to reuse external annotations as interceptor
bindings. As these annotations have members, I decorate them with the
{{@NonBinding}} annotation.
> Adding an annotated type as interceptor binding does not take the annotated
> type metadata into account
> ------------------------------------------------------------------------------------------------------
>
> Key: OWB-1017
> URL: https://issues.apache.org/jira/browse/OWB-1017
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Lifecycle
> Affects Versions: 1.5.0
> Reporter: Antonin Stefanutti
>
> When calling the {{BeforeBeanDiscovery.addInterceptorBinding(AnnotatedType<?
> extends Annotation>)}} method, the metadata of the provided {{AnnotatedType}}
> argument are not taken into account. A typical use case is when some of the
> members of the provided annotated type have been decorated with the
> {{@NonBinding}} annotation.
> Indeed, the implementation in the
> {{org.apache.webbeans.portable.events.discovery.BeforeBeanDiscoveryImpl}}
> class delegate to the class-based version of the
> {{BeforeBeanDiscovery.addInterceptorBinding}} method by losing all the
> metadata information in the process.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)