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

jason.greene@jboss.com do-not-reply at jboss.com
Wed Apr 1 10:03:14 EDT 2009


"adrian at jboss.org" wrote : 
  | You should use an agent.
  | 
  | The Transformer is only there for backwards compatibility with AOP from before the agent api was available.
  | 

The problem with agents is that they scan every class, regardless of where it came from, which usually has a performance impact (although, in fairness we can probably optimize this away to an instanceof) . We also do not install one by default, and have different ones depending on the JVM (although JRockit support is going away). Since we control classloading, it seems like adding a transformer to specific domains is a better approach.




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

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



More information about the jboss-dev-forums mailing list