[cdi-dev] [JBoss JIRA] (CDI-194) Allow AnnotatedType for a given Bean to be obtained

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Wed Aug 29 21:23:32 EDT 2012


    [ https://issues.jboss.org/browse/CDI-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714746#comment-12714746 ] 

Stuart Douglas commented on CDI-194:
------------------------------------

I had use cases for this, it is mainly for interceptors to determine metadata about the type they are intercepting.

In the seam persistence transactional interceptor the TransactionAttributeType had to be non-binding, so the same interceptor was applied. The interceptor would then inspect the annotation of the method, and use the physical annotation to determine what the transaction attribute type is. This would not take into account any changes made via the SPI, so for example attempting to add the interceptor via seam-xml does not work as expected.
                
> Allow AnnotatedType for a given Bean to be obtained
> ---------------------------------------------------
>
>                 Key: CDI-194
>                 URL: https://issues.jboss.org/browse/CDI-194
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Portable Extensions
>    Affects Versions: 1.0
>            Reporter: Jozef Hartinger
>             Fix For: 1.1 (Proposed)
>
>
> See Stuart's comment on CDI-83.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the cdi-dev mailing list