[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2675) Search superclasses of components for @Interceptore

Clint Popetz (JIRA) jira-events at lists.jboss.org
Tue Feb 26 08:13:42 EST 2008


    [ http://jira.jboss.com/jira/browse/JBSEAM-2675?page=comments#action_12400582 ] 
            
Clint Popetz commented on JBSEAM-2675:
--------------------------------------

Note that if the annotation @Foo with the meta-annotation @Interceptors(SomeInterceptor.class) exists on multiple classes in the ancestry of a class A, then A will be intercepted multiple times by SomeInterceptor.  I considered hashing and removing duplicates, but this would involve inspecting @Foo itself to determine if it has any meta-data that is different for each instance, which seemed problematic.   Also, I'm not sure removing duplicates is always the desired behavior.

(This is again the weird impedance mismatch of annotations with inheritance. )



> Search superclasses of components for @Interceptore
> ---------------------------------------------------
>
>                 Key: JBSEAM-2675
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2675
>             Project: JBoss Seam
>          Issue Type: Feature Request
>            Reporter: Clint Popetz
>            Priority: Minor
>         Attachments: component-superclass-interceptors.diff
>
>
> Currently Component.initInterceptors doesn't search superclasses of the bean class for an annotation with the @Interceptors meta-annotation.  This patch adds that functionality.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list