Package org.jboss.aop.pointcut

Examples of org.jboss.aop.pointcut.Pointcut


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


      synchronized (pointcuts)
      {
         Iterator it = pointcuts.values().iterator();
         while (it.hasNext())
         {
            Pointcut pointcut = (Pointcut) it.next();
            if (pointcut.matchesConstruction(advisor, con))
            {
               return true;
            }
         }
      }
View Full Code Here

      Collection pointcuts = advisor.getManager().getPointcuts().values();
      synchronized (pointcuts)
      {
         for (Iterator it = pointcuts.iterator(); it.hasNext(); )
         {
            Pointcut pointcut = (Pointcut) it.next();
  
            if (joinpointMatcher.matches(pointcut, advisor, member))
            {
               if (AspectManager.verbose && logger.isDebugEnabled())
               {
                  logger.debug(member + " matches pointcut: " + pointcut.getExpr());
               }
               return JoinpointClassification.WRAPPED;
            }
         }
      }
View Full Code Here

      synchronized (pointcuts)
      {
         Iterator it = pointcuts.values().iterator();
         while (it.hasNext())
         {
            Pointcut pointcut = (Pointcut) it.next();
            if (pointcut.matchesExecution(advisor, con))
            {
               return true;
            }
         }
      }
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

   {
      Map<String, Pointcut> pointcuts = manager.getPointcuts();
      StringBuffer buffer = new StringBuffer("");
      for (String name : pointcuts.keySet())
      {
         Pointcut pointcut = pointcuts.get(name);
         buffer.append("<b>" + name + "</b> - " + pointcut + "<br>");
      }
      return buffer.toString();
   }
View Full Code Here

      return true;
   }

   private static PointcutStats getPointcutStats(AdviceBinding binding)
   {
      Pointcut pointcut = binding.getPointcut();
      if (pointcut instanceof PointcutExpression)
      {
         PointcutExpression expr =  (PointcutExpression)pointcut;
         return expr.getStats();
      }
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

         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);
         }
        
         initBindingsMap();
         synchronized (bindingCollection)
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.