-
1. Re: How to replace UCL with custom classloader
tom.elrod Oct 12, 2004 11:40 PM (in response to muga_nishizawa)Think you are looking for byte code transformation api, right? This can only be done programatically, and not by configuration.
-
2. Re: How to replace UCL with custom classloader
muga_nishizawa Oct 13, 2004 4:16 AM (in response to muga_nishizawa)Hi telrod (Tom),
Thanks for your quick response.
I am going to look for code translation api (Javassist, JBoss AOP).
Thanks,
Muga Nishizawa -
3. Re: How to replace UCL with custom classloader
tom.elrod Oct 13, 2004 11:11 PM (in response to muga_nishizawa)Use org.jboss.mx.server.MBeanServerImpl.getClassLoaderRepository() to get the org.jboss.mx.loading.UnifiedLoaderRepositoryMBean. From there can call:
public Translator getTranslator();
public void setTranslator(Translator t); -
4. Re: How to replace UCL with custom classloader
tom.elrod Oct 13, 2004 11:15 PM (in response to muga_nishizawa)BTW, if writing something you think would be useful for others, should consider contributing it. :)
-
5. Re: How to replace UCL with custom classloader
muga_nishizawa Oct 15, 2004 10:52 AM (in response to muga_nishizawa)Hi telrod,
> public Translator getTranslator();
> public void setTranslator(Translator t);
If I define a class implementing the Translator interface and set a RepositoryClassLoader to it, it can translate a classfile on load-time (when findClass() executing), right?
I see ... I can realize my idea (load-time translation), if I use this method.
Thanks,
Muga Nishizawa