Package org.jboss.aop.pointcut

Examples of org.jboss.aop.pointcut.Pointcut


    * Find a pointcut of with a given name
    */
   @Override
   public Pointcut getPointcut(String name)
   {
      Pointcut pointcut = null;

      if (parentFirst)
      {
         pointcut = parent.getPointcut(name);
         if (pointcut != null) return pointcut;
View Full Code Here


         removedBindings = this.bindingCollection.removeBindings(binds);
         for (AdviceBinding removedBinding: removedBindings)
         {
            ArrayList<Advisor> ads = removedBinding.getAdvisors();
            bindingAdvisors.addAll(ads);
            Pointcut pointcut = removedBinding.getPointcut();
            this.removePointcut(pointcut.getName());
         }
      }
      finally
      {
         lock.unlockWrite();
View Full Code Here

      AdviceBinding binding = bindingCollection.removeBinding(name);
      if (binding == null)
      {
         return null;
      }
      Pointcut pointcut = binding.getPointcut();
      this.removePointcut(pointcut.getName());
      return binding;
   }
View Full Code Here

         removedBindings = this.bindingCollection.remove(binds);
         for (AdviceBinding removedBinding: removedBindings)
         {
            ArrayList<Advisor> ads = removedBinding.getAdvisors();
            bindingAdvisors.addAll(ads);
            Pointcut pointcut = removedBinding.getPointcut();
            this.removePointcut(pointcut.getName());
         }
      }
      finally
      {
         bindingCollection.unlockWrite();
View Full Code Here

         affectedAdvisors = removedBinding == null ? null : new HashSet<Advisor>(removedBinding.getAdvisors());
         initPointcutsMap();
         initPointcutInfosMap();
         synchronized (pointcuts)
         {
            Pointcut pointcut = binding.getPointcut();
            pointcuts.put(pointcut.getName(), pointcut);
            pointcutInfos.put(pointcut.getName(), new PointcutInfo(pointcut, binding, this.transformationStarted));
            updatePointcutStats(pointcut);
         }
        
         bindingCollection.add(binding);
      }
View Full Code Here

         AdviceBinding binding = bindingCollection.remove(name);
         if (binding == null)
         {
            return null;
         }
         Pointcut pointcut = binding.getPointcut();
         this.removePointcut(pointcut.getName());
         return binding;
      }
      finally
      {
         bindingCollection.unlockWrite();
View Full Code Here

/*    */     Iterator it;
/* 63 */     synchronized (pointcuts)
/*    */     {
/* 65 */       for (it = pointcuts.iterator(); it.hasNext(); )
/*    */       {
/* 67 */         Pointcut pointcut = (Pointcut)it.next();
/*    */
/* 69 */         if (joinpointMatcher.matches(pointcut, advisor, member))
/*    */         {
/* 71 */           if ((AspectManager.verbose) && (logger.isDebugEnabled()))
/*    */           {
/* 73 */             logger.debug(member + " matches pointcut: " + pointcut.getExpr());
/*    */           }
/* 75 */           return JoinpointClassification.WRAPPED;
/*    */         }
/*    */       }
/*    */     }
View Full Code Here

/*  83 */     if ((this.expr == null) || (this.expr.length() == 0))
/*     */     {
/*  85 */       throw new IllegalArgumentException("No expr");
/*     */     }
/*     */
/*  88 */     Pointcut p = null;
/*     */     try
/*     */     {
/*  91 */       p = new PointcutExpression(this.name, this.expr);
/*  92 */       this.manager.addPointcut(p);
/*     */     }
View Full Code Here

/*    */     }
/* 79 */     if ((this.expr == null) || (this.expr.length() == 0))
/*    */     {
/* 81 */       throw new IllegalArgumentException("No pointcut");
/*    */     }
/* 83 */     Pointcut p = null;
/*    */     try
/*    */     {
/* 86 */       p = new PointcutExpression(this.name, this.expr);
/*    */     }
/*    */     catch (ParseException ex)
View Full Code Here

/*  821 */     return this.parent.getContainer(name);
/*      */   }
/*      */
/*      */   public Pointcut getPointcut(String name)
/*      */   {
/*  831 */     Pointcut pointcut = null;
/*      */
/*  833 */     if (this.parentFirst)
/*      */     {
/*  835 */       pointcut = this.parent.getPointcut(name);
/*  836 */       if (pointcut != null) return pointcut;
View Full Code Here

TOP

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

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.