Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ 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 agentArgsInstrumentation 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
 */
New to GrepCode? Check out our FAQ X