aspose file tools
The moose likes Java in General and the fly likes Modify a method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Modify a method " Watch "Modify a method " New topic
Author

Modify a method

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Je suis � la recherche d'un petit renseignement :
Est-il possible en JAVA de modifier lors de l'execution d'une application une m�thode sur une classe ?
(et si oui, comment)
Merci d'avance.
(Can I modify a method of a class when the apllication is running ? Thanks...)

------------------
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6913
It is definately possible to reload a new version of a class while an application is running. I regularly use servlet engines (JServ, Resin) and a test harness (JUnit) which do this. I believe they each provide a slightly modified ClassLoader to do this though. Source code for all the above systems is available, let me know if you need the URLs.
I don't think you can reload individual methods.

A Convergent Visionary ~ Frank's Punchbarrel Blog ~ LinkedIn profile
Fred Abbot
Ranch Hand

Joined: Jun 01, 2000
Posts: 300
thanx for removing my post very nice of you
am i wrong or do you understand what i wrote and therfore took it off
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Modify a method
 
Similar Threads
JSP JAVA +caraceres arabes
French Class
Need help: Updates are not committed in database during deployment
using quartz with seam
Windows height