Package org.jboss.aop.pointcut

Examples of org.jboss.aop.pointcut.Pointcut


         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

         // won't check matching of preparation pointcuts unnecessarily
         if (classification == JoinpointClassification.PREPARED && pointcutInfo.getBinding() == null)
         {
            continue;
         }
         Pointcut pointcut = pointcutInfo.getPointcut();
         if (joinpointMatcher.matches(pointcut, advisor, member)) {
            if (AspectManager.verbose && logger.isDebugEnabled())
            {
               logger.debug(joinpointMatcher.getJoinpointDescription(member) + " matches pointcut: " + pointcut.getExpr());
            }
            // only prepare if pointcut isn't associated with a binding
            if (pointcutInfo.getBinding() == null)
            {
               classification = JoinpointClassification.PREPARED;
View Full Code Here

            synchronized (pointcuts)
            {
               Iterator it = pointcuts.values().iterator();
               while (it.hasNext())
               {
                  Pointcut p = (Pointcut) it.next();
                  if (p.matchesCall(advisor, call))
                  {
                     hasPointcut = true;
                     break;
                  }
                  else
                  {
                     if (AspectManager.verbose && logger.isDebugEnabled()) logger.debug("MethodCall does not match: " + p.getExpr());
                  }
               }
            }
            if (hasPointcut)
            {
View Full Code Here

            synchronized (pointcuts)
            {
               Iterator it = pointcuts.values().iterator();
               while (it.hasNext())
               {
                  Pointcut p = (Pointcut) it.next();
                  if (p.matchesCall(advisor, call))
                  {
                     hasPointcut = true;
                     break;
                  }
               }
View Full Code Here

    * Removes the pointcut and pointcutInfo named {@code name}
    * @param name the name of the pointcut to be removed
    */
   public void removePointcut(String name)
   {
      Pointcut pc = pointcuts.get(name);
      if (pc != null)
      {
         this.removePointcut(pc);
      }
   }
View Full Code Here

         // won't check matching of preparation pointcuts unnecessarily
         if (classification == JoinpointClassification.PREPARED && pointcutInfo.getBinding() == null)
         {
            continue;
         }
         Pointcut pointcut = pointcutInfo.getPointcut();
         if (joinpointMatcher.matches(pointcut, advisor, member)) {
            if (AspectManager.verbose && logger.isDebugEnabled())
            {
               logger.debug(joinpointMatcher.getJoinpointDescription(member) + " matches pointcut: " + pointcut.getExpr());
            }
            // only prepare if pointcut isn't associated with a binding
            if (pointcutInfo.getBinding() == null)
            {
               classification = JoinpointClassification.PREPARED;
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

    * 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

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.