File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "dynamic proxy class" Watch "dynamic proxy class" New topic

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 :
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
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
Do you think what you get is the reasonable behavior of Java?
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?
Visit JavaChina on the web

I agree. Here's the link:
subject: dynamic proxy class
It's not a secret anymore!