aspose file tools*
The moose likes Java in General and the fly likes dynamic proxy class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "dynamic proxy class" Watch "dynamic proxy class" New topic
Author

dynamic proxy class

Nada Mohammed
Ranch Hand

Joined: Sep 22, 2000
Posts: 30
Hello every body,
i have my own package .inside my package i use invoke method form java.lang.Reflect . This invoke method call method from out side package at run time .However, becuase i try to call method from outside package and not public i get the follwoing Exception :
IllegalAccessException
at run time
my question :
can i use dynamic proxy class in the reflect package to solve my problem ???
Actually , when i back to proxy class i found that it also depend on invoke method in the invokation handler
so pleeeease i need support
Nada
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
Do you think what you get is the reasonable behavior of Java?
OR
Do you assume Proxy or reflection should break the rule of Java, and open a backdoor to a class, and let it do something which it is not supposed to do?
Thanks!
Roseanne
Visit JavaChina on the web

 
jQuery in Action, 2nd edition
 
subject: dynamic proxy class