This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Dynamic Proxy class in JDK1.1.8  RSS feed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just want to creat a Proxy class for a another class. Can any one help me out.
Thank you
Muthu
 
author and iconoclast
Sheriff
Posts: 24220
40
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you saying you want to use the dynamic proxy stuff introduced in JDK 1.3, but use it under JDK 1.1.8? Because the relevant code has hooks into to the JVM's native libraries, this isn't something you can do directly. I imagine that you could (with effort!) create the bytecode representation of the proxy class you need, then load it; it's not going to be an easy thing to do, however. JDK 1.1 does have the java.lang.reflect package, so it's definitely possible.
 
Madi Muthukumaran
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ThanX a lot for ur reply
I am not exactly sure that I have to use the Proxy class that what introduced in JDK1.3, but I will tell what I need to do, so if u can give me an idea to implement that.
I have to write a class that delegates all the operations on it to another class. I need to do this because only at run-time I will not the class that I have to use. So, the proxy class I am talking about have get the class name at run-time and needs to delegate all the operations invoked on it to other class got at run-time.
By the word operation I mean constructor, method class etc.,
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!