tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OPENEJB-1546) currently, the inteceptor build only handle the public methods of the bean instead of all methods.
Date Tue, 10 May 2011 12:58:47 GMT

     [ https://issues.apache.org/jira/browse/OPENEJB-1546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ivan resolved OPENEJB-1546.
---------------------------

       Resolution: Fixed
    Fix Version/s: 4.0

Commit changes to trunk at rev.r1101448. Thanks, Shawn.

> currently,  the inteceptor build only handle the public methods of the bean instead of
all methods.
> ---------------------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-1546
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1546
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: ejb31
>    Affects Versions: (trunk/openejb3)
>            Reporter: Shawn Jiang
>             Fix For: 4.0
>
>         Attachments: 0008-getMethods-will-only-handle-the-public-method-of-the.patch
>
>
> In org.apache.openejb.assembler.classic.InterceptorBindingBuilder.build(BeanContext,
EnterpriseBeanInfo), following logic is used to find interceptors of all methods of bean class.
> for (Method method : beanContext.getBeanClass().getMethods()) {
> -            List<InterceptorData> methodInterceptors = createInterceptorDatas(method,
beanInfo.ejbName, this.bindings);
> -
> -            // The bean itself gets to intercept too and is always last.
> -            methodInterceptors.add(beanAsInterceptor);
> -
> -            beanContext.setMethodInterceptors(method, methodInterceptors);
> }
> But because Class.getMethods() can only return public methods,  we missed all private/protected
methods here.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message