[Jython-users] Example of Java class reloading
by Gustav Bostrom other posts by this author
Feb 27 2002 4:33PM messages near this date
Re: [Jython-users] Why is self used so much
|
Re: [Jython-users] Example of Java class reloading
Hi!
I'm struggling to get the Java-class reloading to work.=20
I'm not very succesful.
Does anyone have a good example to share?=20
I tried this, but it didn't work:
import jreload
classpath=3D["V:\\eonworx\\output\\contrib\\studio\\classes"]
classesLoadSet=3Djreload.makeLoadSet("classes",classpath)
print classesLoadSet
from classes import Hello
jreload.reload(classesLoadSet)
def rl():
jreload.reload(classesLoadSet)
def runHello():
Hello().sayHello()
When I run rl() the Hello-class is still not reloaded and runHello() =
still produces the old result.
gustav bostr=F6m
the eon company
www.eoncompany.com
o +46-8-54528800
m +46-70-9575154
e gustav.bostrom@eoncompany.com
Attachments:
unknown1
Thread:
Gustav Bostrom
Samuele Pedroni
|