[
https://issues.jboss.org/browse/CDI-138?page=com.atlassian.jira.plugin.sy...
]
Pete Muir commented on CDI-138:
-------------------------------
This was discussed at yesterdays EG meeting.
{quote}
- Discussed whether it's better to fire a PAT (or another similar event?) for
annotations, allowing them to be modified. Mark to file a new issue for this feature
request. We need to collect use cases.
- Should be able to apply @Nonbinding at annotation level
(
https://issues.jboss.org/browse/CDI-253)
- Hold on applying this issue until we explore whether should fire an event to modify
annotations
{quote}
Allow an extension to register an interceptor bindings and qualifiers
with an AnnotatedType
-------------------------------------------------------------------------------------------
Key: CDI-138
URL:
https://issues.jboss.org/browse/CDI-138
Project: CDI Specification Issues
Issue Type: Feature Request
Components: Interceptors, Portable Extensions
Affects Versions: 1.0, 1.1.EDR
Reporter: Kevin Pollet
Assignee: Pete Muir
Priority: Minor
Fix For: 1.1.PRD
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)}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira