The Artima Developer Community
Sponsored Link

Java Answers Forum
Classloader limits?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Michael Feathers

Posts: 448
Nickname: mfeathers
Registered: Jul, 2003

Classloader limits? Posted: Mar 11, 2004 7:15 PM
Reply to this message Reply
Advertisement
Here's something I'd like to do, but I don't know if it is possible. I'd like take a class that constructs some object of another class and have it load another class entirely rather than the one that is named in the "new" expression. The class that is loaded would have a different name, but it would be signature compatible with the named class in the source.

Oh, and I'd like to be able to do this over and over again replacing the class with different classes in different methods.

In case you are wondering, this is for a testing tool. I just don't know whether hotswap or any of the newer Java features would allow me to do this. Anyone have any pointers?

Topic: Using Loops in place of Exception Handlers Previous Topic   Next Topic Topic: Polymorphism Questions


Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2014 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us