Package org.jboss.aop.standalone

Source Code of org.jboss.aop.standalone.Agent

/*    */ package org.jboss.aop.standalone;
/*    */
/*    */ import java.lang.instrument.Instrumentation;
/*    */ import org.jboss.aop.AspectManager;
/*    */ import org.jboss.aop.DynamicAOPStrategy;
/*    */ import org.jboss.aop.HotSwapStrategy;
/*    */
/*    */ public class Agent
/*    */ {
/*    */   public static void premain(String agentArgs, Instrumentation inst)
/*    */   {
/* 41 */     StandaloneClassPoolFactory factory = new StandaloneClassPoolFactory();
/* 42 */     AspectManager.setClassPoolFactory(factory);
/*    */
/* 44 */     AspectManager.instance();
/* 45 */     if ((agentArgs != null) && (agentArgs.indexOf("-hotSwap") != -1))
/*    */     {
/* 48 */       DynamicAOPStrategy strategy = new HotSwapStrategy(new InstrumentationAdapter(inst));
/* 49 */       AspectManager.instance().setDynamicAOPStrategy(strategy);
/* 50 */       AspectManager.setPrune(false);
/*    */     }
/* 52 */     inst.addTransformer(new AOPTransformer());
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name:     org.jboss.aop.standalone.Agent
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of org.jboss.aop.standalone.Agent

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.