Think you are looking for byte code transformation api, right? This can only be done programatically, and not by configuration.
Hi telrod (Tom),
Thanks for your quick response.
I am going to look for code translation api (Javassist, JBoss AOP).
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);
BTW, if writing something you think would be useful for others, should consider contributing it. :)
> 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.