You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by Gurkan Erdogdu <cg...@gmail.com> on 2010/01/25 08:35:46 UTC

About (OWB-251) Proxies created with JavassistProxyFactory do not intercept private functions

Hi;

I will close this issue because OWB must not intercept private methods.
Therefore its OK to not intercept private methods of producer, observer etc.
It is reasonable because __private__ methods are not called by any other
methods that are not defined in __target__ object.

I have also tried examples (private observer, private producer etc.) in RI
Weld, it also does not intercept private methods.

Therefore, I am going to close this issue.

Thanks;

--Gurkan

Re: About (OWB-251) Proxies created with JavassistProxyFactory do not intercept private functions

Posted by Sven Linstaedt <sv...@googlemail.com>.
In addition I am not aware of any other framework , that uses cglib instead
of aspectj and is able to intercept private methods. From a technical point
of view this should be impossible.

br, Sven


2010/1/25 Gurkan Erdogdu <cg...@gmail.com>

> Also, interceptors are applied to business methods of the bean class. I
> have
> looked at the how business method restrictions are defined in the EJB 3.1
> specification. It says that "it must be __public__".(EJB 3.1 specification
> chapter, 4.9.6).
>
> --Gurkan
>
> 2010/1/25 Gurkan Erdogdu <cg...@gmail.com>
>
> > Hi;
> >
> > I will close this issue because OWB must not intercept private methods.
> > Therefore its OK to not intercept private methods of producer, observer
> etc.
> > It is reasonable because __private__ methods are not called by any other
> > methods that are not defined in __target__ object.
> >
> > I have also tried examples (private observer, private producer etc.) in
> RI
> > Weld, it also does not intercept private methods.
> >
> > Therefore, I am going to close this issue.
> >
> > Thanks;
> >
> > --Gurkan
> >
>
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>

Re: About (OWB-251) Proxies created with JavassistProxyFactory do not intercept private functions

Posted by Gurkan Erdogdu <cg...@gmail.com>.
Also, interceptors are applied to business methods of the bean class. I have
looked at the how business method restrictions are defined in the EJB 3.1
specification. It says that "it must be __public__".(EJB 3.1 specification
chapter, 4.9.6).

--Gurkan

2010/1/25 Gurkan Erdogdu <cg...@gmail.com>

> Hi;
>
> I will close this issue because OWB must not intercept private methods.
> Therefore its OK to not intercept private methods of producer, observer etc.
> It is reasonable because __private__ methods are not called by any other
> methods that are not defined in __target__ object.
>
> I have also tried examples (private observer, private producer etc.) in RI
> Weld, it also does not intercept private methods.
>
> Therefore, I am going to close this issue.
>
> Thanks;
>
> --Gurkan
>



-- 
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com