Examples of PointcutMethodMatch


Examples of org.jboss.aop.pointcut.PointcutMethodMatch

   protected void bindMethodAdvice(Method mi, Collection<AdviceBinding> bindings)
   {
      ArrayList<InterceptorFactory> advices = methodAdvices.get(mi);
      for (AdviceBinding binding : bindings)
      {
         PointcutMethodMatch pmatch= binding.getPointcut().matchesExecution(advisor, mi);
        
         if (pmatch != null && pmatch.isMatch())
         {
            if (advices == null)
            {
               advices = new ArrayList<InterceptorFactory>();
               methodAdvices.put(mi, advices);
View Full Code Here

Examples of org.jboss.aop.pointcut.PointcutMethodMatch

/* 220 */     Iterator it = bindings.values().iterator();
/* 221 */     ArrayList advices = (ArrayList)this.methodAdvices.get(mi);
/* 222 */     while (it.hasNext())
/*     */     {
/* 225 */       AdviceBinding binding = (AdviceBinding)it.next();
/* 226 */       PointcutMethodMatch pmatch = binding.getPointcut().matchesExecution(this.advisor, mi);
/*     */
/* 228 */       if ((pmatch != null) && (pmatch.isMatch()))
/*     */       {
/* 230 */         if (advices == null)
/*     */         {
/* 232 */           advices = new ArrayList();
/* 233 */           this.methodAdvices.put(mi, advices);
View Full Code Here

Examples of org.jboss.aop.pointcut.PointcutMethodMatch

/* 111 */     int size = this.bindings.size();
/* 112 */     int minMatchLevel = 1000000;
/* 113 */     for (int i = 0; i < size; i++)
/*     */     {
/* 115 */       AdviceBinding binding = (AdviceBinding)this.bindings.get(i);
/* 116 */       PointcutMethodMatch match = (PointcutMethodMatch)this.pointcutMethodMatches.get(i);
/* 117 */       if ((AspectManager.verbose) && (logger.isDebugEnabled())) logger.debug(match.getMatchLevel() + " " + match.getMatchedClass().getName() + " " + binding.getPointcut().getExpr() + " : " + binding.getInterceptorFactories().length);
/*     */
/* 119 */       if ((minMatchLevel <= match.getMatchLevel()) || (match.isInstanceOf()))
/*     */         continue;
/* 121 */       minMatchLevel = match.getMatchLevel();
/*     */     }
/*     */
/* 125 */     if ((AspectManager.verbose) && (logger.isDebugEnabled())) logger.debug("populate bindings for " + this.info.getMethod() + " actual bindings");
/* 126 */     for (int i = 0; i < size; i++)
/*     */     {
/* 128 */       AdviceBinding binding = (AdviceBinding)this.bindings.get(i);
/* 129 */       PointcutMethodMatch match = (PointcutMethodMatch)this.pointcutMethodMatches.get(i);
/*     */
/* 131 */       if ((!match.isInstanceOf()) && (match.getMatchLevel() != minMatchLevel))
/*     */         continue;
/* 133 */       if ((AspectManager.verbose) && (logger.isDebugEnabled())) logger.debug(match.getMatchLevel() + " " + match.getMatchedClass().getName() + " " + binding.getPointcut().getExpr() + " : " + binding.getInterceptorFactories().length);
/* 134 */       applyBinding(applicableBindings, binding);
/*     */     }
/*     */   }
View Full Code Here

Examples of org.jboss.aop.pointcut.PointcutMethodMatch

/*      */   {
/*  883 */     long[] keys = this.advisedMethods.keys();
/*  884 */     for (int i = 0; i < keys.length; i++)
/*      */     {
/*  886 */       Method method = (Method)this.advisedMethods.get(keys[i]);
/*  887 */       PointcutMethodMatch match = binding.getPointcut().matchesExecution(this, method);
/*      */
/*  889 */       if ((match == null) || (!match.isMatch()))
/*      */         continue;
/*  891 */       this.adviceBindings.add(binding);
/*  892 */       if (AspectManager.verbose)
/*      */       {
/*  905 */         System.err.println("[debug] method matched binding: " + method.toString());
View Full Code Here

Examples of org.jboss.aop.pointcut.PointcutMethodMatch

/*      */     {
/*  260 */       for (it = this.overriddenMethods.iterator(); it.hasNext(); )
/*      */       {
/*  262 */         MethodInfo info = (MethodInfo)it.next();
/*  263 */         Method method = info.getMethod();
/*  264 */         PointcutMethodMatch match = binding.getPointcut().matchesExecution(this, method);
/*      */
/*  266 */         if ((match != null) && (match.isMatch()))
/*      */         {
/*  268 */           this.adviceBindings.add(binding);
/*  269 */           if (AspectManager.verbose)
/*      */           {
/*  271 */             System.err.println("method matched binding " + binding.getPointcut().getExpr() + " " + method.toString());
View Full Code Here

Examples of org.jboss.aop.pointcut.PointcutMethodMatch

      {
         for (Iterator it = overriddenMethods.iterator() ; it.hasNext() ; )
         {
            MethodInfo info = (MethodInfo)it.next();
            Method method = info.getMethod();
            PointcutMethodMatch match = binding.getPointcut().matchesExecution(this, method);
           
            if (match != null && match.isMatch())
            {
               adviceBindings.add(binding);
               if (AspectManager.verbose)
               {
                  System.err.println("method matched binding " + binding.getPointcut().getExpr() + " " + method.toString());    
View Full Code Here

Examples of org.jboss.aop.pointcut.PointcutMethodMatch

      ArrayList advices = (ArrayList)methodAdvices.get(mi);
      while (it.hasNext())
      {

         AdviceBinding binding = (AdviceBinding)it.next();
         PointcutMethodMatch pmatch= binding.getPointcut().matchesExecution(advisor, mi);
        
         if (pmatch != null && pmatch.isMatch())
         {
            if (advices == null)
            {
               advices = new ArrayList();
               methodAdvices.put(mi, advices);
View Full Code Here

Examples of org.jboss.aop.pointcut.PointcutMethodMatch

      int size = bindings.size();
      int minMatchLevel = 1000000;
      for (int i = 0 ; i < size ; i++)
      {
         AdviceBinding binding = (AdviceBinding)bindings.get(i);
         PointcutMethodMatch match = (PointcutMethodMatch)pointcutMethodMatches.get(i);
         if (AspectManager.verbose && logger.isDebugEnabled()) logger.debug(match.getMatchLevel() + " " + match.getMatchedClass().getName() + " " + binding.getPointcut().getExpr() + " : " + binding.getInterceptorFactories().length);
        
         if (minMatchLevel > match.getMatchLevel() && !match.isInstanceOf())
         {
            minMatchLevel = match.getMatchLevel();
         }
      }

      if (AspectManager.verbose && logger.isDebugEnabled()) logger.debug("populate bindings for " + info.getMethod() + " actual bindings");
      for (int i = 0 ; i < size ; i++)
      {
         AdviceBinding binding = (AdviceBinding)bindings.get(i);
         PointcutMethodMatch match = (PointcutMethodMatch)pointcutMethodMatches.get(i);
        
         if (match.isInstanceOf() || match.getMatchLevel() == minMatchLevel)
         {
            if (AspectManager.verbose && logger.isDebugEnabled()) logger.debug(match.getMatchLevel() + " " + match.getMatchedClass().getName() + " " + binding.getPointcut().getExpr() + " : " + binding.getInterceptorFactories().length);
            applyBinding(applicableBindings, binding);
         }
      }
   }
View Full Code Here

Examples of org.jboss.aop.pointcut.PointcutMethodMatch

   {
      long[] keys = methodInfos.keys();
      for (int i = 0; i < keys.length; i++)
      {
         Method method = (Method) advisedMethods.get(keys[i]);
         PointcutMethodMatch match = binding.getPointcut().matchesExecution(this, method);
        
         if (match != null && match.isMatch())
         {
            adviceBindings.add(binding);
            if (AspectManager.verbose)
            {
               /*
 
View Full Code Here

Examples of org.jboss.aop.pointcut.PointcutMethodMatch

   {
      long[] keys = methodInfos.keys();
      for (int i = 0; i < keys.length; i++)
      {
         Method method = (Method) advisedMethods.get(keys[i]);
         PointcutMethodMatch match = binding.getPointcut().matchesExecution(this, method);
        
         if (match != null && match.isMatch())
         {
            adviceBindings.add(binding);
            if (AspectManager.verbose)
            {
               /*
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.