Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package org.jboss.aop.advice;
 /*    */ 
 /*    */ import org.jboss.aop.Advisor;
 /*    */ import org.jboss.aop.joinpoint.Joinpoint;
 /*    */ 
 /*    */ public class PerClassAdvice
 /*    */ {
 /*    */   public static Interceptor generate(Joinpoint joinpointAdvisor advisorString adviceNameAspectDefinition def)
 /*    */     throws Exception
/*    */   {
/* 37 */     Interceptor interceptor = advisor.getAdviceInterceptor(def, adviceName, joinpoint);
/* 38 */     if (interceptor != nullreturn interceptor;
/* 39 */     advisor.addPerClassAspect(def);
/* 40 */     Object aspect = advisor.getPerClassAspect(def);
/* 41 */     interceptor = PerVmAdvice.generateInterceptor(joinpoint, aspect, adviceName);
/* 42 */     advisor.addAdviceInterceptor(def, adviceName, interceptor, joinpoint);
/* 43 */     return interceptor;
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
 * Qualified Name:     org.jboss.aop.advice.PerClassAdvice
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X