Package org.jboss.aop.pointcut

Examples of org.jboss.aop.pointcut.PointcutExpression


      }

      String name = cf.getName();
      InterceptorFactory[] inters = {factory};
      Pointcut p = null;
      p = new PointcutExpression(name, pointcutString);
      AdviceBinding binding = new AdviceBinding(name, p, cflowExpression, cflow, inters);
      manager.addBinding(binding);
   }
View Full Code Here


         if (mgroup == null) continue;
         javassist.bytecode.annotation.Annotation binfo = mgroup.getAnnotation(PointcutDef.class.getName());
         if (binfo == null) continue;
         PointcutDef pdef = (PointcutDef) AnnotationProxy.createProxy(binfo, PointcutDef.class);

         PointcutExpression pointcut = new PointcutExpression(getPointcutName(cf, finfo), pdef.value());

         manager.addPointcut(pointcut);
      }
   }
View Full Code Here

         if (binfo == null) continue;
         Prepare prepare = (Prepare) AnnotationProxy.createProxy(binfo, Prepare.class);

         String name = getPrepareName(cf, finfo);
         String expr = prepare.value();
         Pointcut p = new PointcutExpression(name, expr);
         manager.addPointcut(p);
      }
   }
View Full Code Here

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

   private void updatePointcutStats(Pointcut pointcut, AspectManager manager)
   {
      // the following is for performance reasons.
      if (pointcut instanceof PointcutExpression)
      {
         PointcutExpression expr = (PointcutExpression) pointcut;
         expr.setManager(manager);
         PointcutStats stats = expr.getStats();
         updateStats(stats);
      }
      else
      {
         // can't be sure so set all
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

         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

      }

      String name = cf.getName();
      InterceptorFactory[] inters = {factory};
      Pointcut p = null;
      p = new PointcutExpression(name, pointcutString);
      AdviceBinding binding = new AdviceBinding(name, p, cflowExpression, cflow, inters);
      manager.addBinding(binding);
   }
View Full Code Here

         if (mgroup == null) continue;
         javassist.bytecode.annotation.Annotation binfo = mgroup.getAnnotation(PointcutDef.class.getName());
         if (binfo == null) continue;
         PointcutDef pdef = (PointcutDef) AnnotationProxy.createProxy(binfo, PointcutDef.class);

         PointcutExpression pointcut = new PointcutExpression(getPointcutName(cf, finfo), pdef.value());

         manager.addPointcut(pointcut);
      }
   }
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.