Package org.jboss.aop.pointcut

Examples of org.jboss.aop.pointcut.PointcutExpression


/*      */           }
/*      */
/*  471 */           this.manager.addInterceptorFactory(factory.getName(), factory);
/*  472 */           InterceptorFactory[] fact = { factory };
/*  473 */           String name = getAspectMethodBindingName(cf, minfo);
/*  474 */           PointcutExpression pointcut = new PointcutExpression(name, pointcutString);
/*  475 */           AdviceBinding abinding = new AdviceBinding(name, pointcut, cflowExpression, cflow, fact);
/*  476 */           this.manager.addBinding(abinding);
/*      */         }
/*      */       }
/*      */     }
View Full Code Here


/*      */     }
/*      */
/*  549 */     String name = cf.getName();
/*  550 */     InterceptorFactory[] inters = { factory };
/*  551 */     Pointcut p = null;
/*  552 */     p = new PointcutExpression(name, pointcutString);
/*  553 */     AdviceBinding binding = new AdviceBinding(name, p, cflowExpression, cflow, inters);
/*  554 */     this.manager.addBinding(binding);
/*      */   }
View Full Code Here

/*  577 */       if (mgroup != null) {
/*  578 */         Annotation binfo = mgroup.getAnnotation(PointcutDef.class.getName());
/*  579 */         if (binfo != null) {
/*  580 */           PointcutDef pdef = (PointcutDef)AnnotationProxy.createProxy(binfo, PointcutDef.class);
/*      */
/*  582 */           PointcutExpression pointcut = new PointcutExpression(getPointcutName(cf, finfo), pdef.value());
/*      */
/*  584 */           this.manager.addPointcut(pointcut);
/*      */         }
/*      */       }
/*      */     }
View Full Code Here

/*  902 */         if (binfo != null) {
/*  903 */           Prepare prepare = (Prepare)AnnotationProxy.createProxy(binfo, Prepare.class);
/*      */
/*  905 */           String name = getPrepareName(cf, finfo);
/*  906 */           String expr = prepare.value();
/*  907 */           Pointcut p = new PointcutExpression(name, expr);
/*  908 */           this.manager.addPointcut(p);
/*      */         }
/*      */       }
/*      */     }
/*      */   }
View Full Code Here

   protected void updatePointcutStats(Pointcut pointcut)
   {
      // the following is for performance reasons.
      if (pointcut instanceof PointcutExpression)
      {
         PointcutExpression expr = (PointcutExpression) pointcut;
         expr.setManager(this);
         PointcutStats stats = expr.getStats();
         updateStats(stats);
      }
      else
      {
         // can't be sure so set all
View Full Code Here

      ArrayList<InterceptorFactory> interceptors = loadInterceptors(element);
      InterceptorFactory[] inters = interceptors.toArray(new InterceptorFactory[interceptors.size()]);
      Pointcut p = null;
      try
      {
         p = new PointcutExpression(getName("binding pointcut "), pointcut);
      }
      catch (ParseException ex)
      {
         throw new RuntimeException("<bind> pointcut expression failed: " + pointcut, ex);
      }
View Full Code Here

         throw new RuntimeException("pointcut declaration must have an expr associated with it");
      }
      Pointcut p = null;
      try
      {
         p = new PointcutExpression(name, expr);
      }
      catch (ParseException ex)
      {
         throw new RuntimeException("<pointcut name='" + name + "' expr='" + expr + "'/> failed", ex);
      }
View Full Code Here

         throw new RuntimeException("pointcut declaration must have an expr associated with it");
      }
      Pointcut p = null;
      try
      {
         p = new PointcutExpression(name, expr);
      }
      catch (ParseException ex)
      {
         throw new RuntimeException("<prepare> failed: " + expr, ex);
      }
View Full Code Here

         if (AspectManager.verbose && logger.isDebugEnabled()) logger.debug("Found top-level @Prepare in: " + cf.getName());
         Prepare prepare = (Prepare) AnnotationProxy.createProxy(info, Prepare.class);

         String name = cf.getName() + "." + visible.getName();
         String expr = replaceThisInExpr(prepare.value(), cf.getName());
         Pointcut p = new PointcutExpression(name, expr);
         manager.addPointcut(p);
         return true;
      }
     
      return false;
View Full Code Here

         }
        
         manager.addInterceptorFactory(factory.getName(), factory);
         InterceptorFactory[] fact = {factory};
         String name = getAspectMethodBindingName(cf, minfo);
         PointcutExpression pointcut = new PointcutExpression(name, pointcutString);
         AdviceBinding abinding = new AdviceBinding(name, pointcut, cflowExpression, cflow, fact);
         manager.addBinding(abinding);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.aop.pointcut.PointcutExpression

Copyright © 2018 www.massapicom. 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.