[jboss-dev-forums] [Design the new POJO MicroContainer] - Multiple ClassFileTransformers/Translators

alesj do-not-reply at jboss.com
Wed Apr 1 05:27:28 EDT 2009


WRT: https://jira.jboss.org/jira/browse/JBSPRING-1
I've created custom JBoss5 LTW: http://anonsvn.jboss.org/repos/jbossas/projects/spring-int/trunk/weaving/src/main/java/org/jboss/instrument/classloading/JBoss5ClassLoader.java

But my actual question is really:
* why do we use custom Translator instead of ClassFileTransformer
** perhaps the usage of Translator::unregisterClassLoader
* why do we have just one translator and not a list of them
* why Translator per ClassLoaderSystem and not (also) per BaseClassLoaderPolicy

Afaics the SpringLTW example will set the transformer to the whole ClassLoaderSystem,
where it would actually only make sense to have it on apps CL policy.


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222545#4222545

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222545



More information about the jboss-dev-forums mailing list