Package org.jboss.aop.pointcut

Examples of org.jboss.aop.pointcut.PointcutExpression


      loader.getAspectManager().removeDynamicCFlow(name);
   }
  
   public void deployPointcut(AspectAnnotationLoader loader, String name, String expr) throws Exception
   {
      Pointcut p = new PointcutExpression(name, expr);
      loader.getAspectManager().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

/*     */     }
/*     */
/*  88 */     Pointcut p = null;
/*     */     try
/*     */     {
/*  91 */       p = new PointcutExpression(this.name, this.expr);
/*  92 */       this.manager.addPointcut(p);
/*     */     }
/*     */     catch (ParseException ex)
/*     */     {
/*  96 */       throw new RuntimeException("<pointcut name='" + this.name + "' expr='" + this.expr + "'/> failed", ex);
View Full Code Here

/* 81 */       throw new IllegalArgumentException("No pointcut");
/*    */     }
/* 83 */     Pointcut p = null;
/*    */     try
/*    */     {
/* 86 */       p = new PointcutExpression(this.name, this.expr);
/*    */     }
/*    */     catch (ParseException ex)
/*    */     {
/* 90 */       throw new RuntimeException("<pointcut name='" + this.name + "' expr='" + this.expr + "'/> failed", ex);
/*    */     }
View Full Code Here

/*      */
/*      */   protected void updatePointcutStats(Pointcut pointcut)
/*      */   {
/* 1230 */     if ((pointcut instanceof PointcutExpression))
/*      */     {
/* 1232 */       PointcutExpression expr = (PointcutExpression)pointcut;
/* 1233 */       expr.setManager(this);
/* 1234 */       PointcutStats stats = expr.getStats();
/* 1235 */       updateStats(stats);
/*      */     }
/*      */     else
/*      */     {
/* 1240 */       this.execution = true;
View Full Code Here

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

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

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

/*     */   }
/*     */
/*     */   public void setPointcutExpression(String pointcutExpression)
/*     */     throws ParseException
/*     */   {
/* 115 */     this.pointcut = new PointcutExpression(Long.toString(System.currentTimeMillis()) + ":" + Long.toString(counter++), pointcutExpression);
/*     */   }
View Full Code Here

/*  368 */       if ((AspectManager.verbose) && (logger.isDebugEnabled())) logger.debug("Found top-level @Prepare in: " + cf.getName());
/*  369 */       Prepare prepare = (Prepare)AnnotationProxy.createProxy(info, Prepare.class);
/*      */
/*  371 */       String name = cf.getName() + "." + visible.getName();
/*  372 */       String expr = replaceThisInExpr(prepare.value(), cf.getName());
/*  373 */       Pointcut p = new PointcutExpression(name, expr);
/*  374 */       this.manager.addPointcut(p);
/*  375 */       return true;
/*      */     }
/*      */
/*  378 */     return false;
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.