A
andrewzzz
Hi sir...
I am working(more properly studying) on the server side of a
distributed system.
The server receives correctly a .class file and write it correctly to
a file.
At this point the server should create a new instance of the class :
so I redefinied the default classloader ("AgentClassLoader") that
correctly creates the class,still not instaciated.
Now I "think" I should use reflection to start theclass....but I don't
know how....I'm not very fond reflection!!
Note that this class is a thread with only the run and has a
constructor...so it should be very simple...How do I (what is the
simplest way to) instanciate the class....?? I do I create the
constructor?? How do I call the start or run method of my thread?
(should I call run() or start())?
Thank you so much.
andy
I am working(more properly studying) on the server side of a
distributed system.
The server receives correctly a .class file and write it correctly to
a file.
At this point the server should create a new instance of the class :
so I redefinied the default classloader ("AgentClassLoader") that
correctly creates the class,still not instaciated.
Now I "think" I should use reflection to start theclass....but I don't
know how....I'm not very fond reflection!!
Note that this class is a thread with only the run and has a
constructor...so it should be very simple...How do I (what is the
simplest way to) instanciate the class....?? I do I create the
constructor?? How do I call the start or run method of my thread?
(should I call run() or start())?
Thank you so much.
andy