Description
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.