You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Peter Donald <pe...@realityforge.org> on 2003/02/28 23:51:57 UTC

Re: cvs commit: avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/handler ProxyHelper.java

you do realize that this renders any protection offered by proxies absolutely 
useless. Thhis and the invocationhandler were deliberately made package 
access.

On Sat, 1 Mar 2003 03:16, proyal@apache.org wrote:
> proyal      2003/02/28 08:16:42
>
>   Modified:    fortress/src/java/org/apache/avalon/fortress/impl/handler
>                         ProxyHelper.java
>   Log:
>   Make public so extended containers can use the class
>
>   Revision  Changes    Path
>   1.3       +1 -1     
> avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/handler/
>ProxyHelper.java
>
>   Index: ProxyHelper.java
>   ===================================================================
>   RCS file:
> /home/cvs/avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/imp
>l/handler/ProxyHelper.java,v retrieving revision 1.2
>   retrieving revision 1.3
>   diff -u -r1.2 -r1.3
>   --- ProxyHelper.java	25 Feb 2003 16:28:26 -0000	1.2
>   +++ ProxyHelper.java	28 Feb 2003 16:16:41 -0000	1.3
>   @@ -82,7 +82,7 @@
>     * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
>     * @author <a href="mailto:peter at apache.org">Peter Donald</a>
>     */
>   -final class ProxyHelper
>   +public final class ProxyHelper
>    {
>        /**
>         * The list interfaces that will not be proxied.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
> For additional commands, e-mail: cvs-help@avalon.apache.org

-- 
Cheers,

Peter Donald
-------------------------------------------------------------
|  Egoism is the drug that soothes the pain of stupidity.   |
------------------------------------------------------------- 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Re: cvs commit: avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/handler ProxyHelper.java

Posted by Peter Royal <pr...@apache.org>.
On Friday, February 28, 2003, at 07:18  PM, Peter Donald wrote:
> On Sat, 1 Mar 2003 10:49, Peter Royal wrote:
>> On Friday, February 28, 2003, at 05:51  PM, Peter Donald wrote:
>>> you do realize that this renders any protection offered by proxies
>>> absolutely
>>> useless. Thhis and the invocationhandler were deliberately made 
>>> package
>>> access.
>>
>> whoops! I have reverted and added information into the javadocs to 
>> that
>> effect.
>
> We may want expose the functionality you require via a protected final 
> method
> in a new AbstractProxyHandler or even the base 
> AbstractComponentHandler. What
> exactly do you need access for?

Just for its proxy-creating functionality, proxying an object with all 
interfaces except for the lifecycle ones.

I had to switch from using the fortress serviceselector to making my 
own "selector" component/container and just wanted to leverage that 
class. I'm either going to leave the jar i build modified or copy the 
classes into my tree (and make them protected for the same reasons :)
-pete


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Re: cvs commit: avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/handler ProxyHelper.java

Posted by Peter Donald <pe...@realityforge.org>.
On Sat, 1 Mar 2003 10:49, Peter Royal wrote:
> On Friday, February 28, 2003, at 05:51  PM, Peter Donald wrote:
> > you do realize that this renders any protection offered by proxies
> > absolutely
> > useless. Thhis and the invocationhandler were deliberately made package
> > access.
>
> whoops! I have reverted and added information into the javadocs to that
> effect.

We may want expose the functionality you require via a protected final method 
in a new AbstractProxyHandler or even the base AbstractComponentHandler. What 
exactly do you need access for?

-- 
Cheers,

Peter Donald
"All my life I wanted to be someone; I guess I should have been more 
specific."
-- Jane Wagner


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Re: cvs commit: avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/handler ProxyHelper.java

Posted by Peter Royal <pr...@apache.org>.
On Friday, February 28, 2003, at 05:51  PM, Peter Donald wrote:
> you do realize that this renders any protection offered by proxies 
> absolutely
> useless. Thhis and the invocationhandler were deliberately made package
> access.

whoops! I have reverted and added information into the javadocs to that 
effect.
-pete


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org