Hi,
Your class does not have to provide main() for startup.
Instead, you can call any method by the reflection API.
For example,
| Loader cl = new Loader();
| cl.addTranslator(pool, t);
| Class c = cl.loadClass(classname);
| try {
| c.getDeclaredMethod("start", new Class[] { String[].class })
| .invoke(null, new Object[] { args });
| }
| catch (java.lang.reflect.InvocationTargetException e) {
| throw e.getTargetException();
| }
|
This calls startup(String).
If the example above does not help, could you give me a reference
to the example code you mentioned below?
anonymous wrote : I used example code from ASM site to reload dynamicaly changed class
by classloader that loads from bytecode and in Eclipse it works I got aspectized code
Chiba
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842678#3842678
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842678
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user