Package org.jboss.aop.advice

Examples of org.jboss.aop.advice.NoMatchingAdviceException


               properties, contextRules, mutuallyExclusive);

      // no advice method following the rules was found
      if (cacheCollection == null || cacheCollection.isEmpty())
      {
         throw new NoMatchingAdviceException(properties, adviceType,
               adviceMatchingMessage.toString());
      }
      synchronized(cacheCollection)
      {
         LinkedList<AdviceInfo> rankedAdvices =
               new LinkedList<AdviceInfo>(cacheCollection);
         // validate and retrive best match
         AdviceInfo bestAdvice = bestValidAdvice(rankedAdvices, properties,
               contextRules);
         if (bestAdvice == null)
         {
            throw new NoMatchingAdviceException(properties, adviceType,
                  adviceMatchingMessage.toString());
         }
         // assign best Advice info to properties
         bestAdvice.assignAdviceInfo(properties);
         properties.setAdviceOverloaded(rankedAdvices.size() > 1);
View Full Code Here


         if (methods.length == 0)
         {
            if (AspectManager.verbose)
            {
               throw new NoMatchingAdviceException(properties, adviceType,
                     ": no method named " + properties.getAdviceName() +
                     " was found");
            }
            return null;
         }
View Full Code Here

               properties, contextRules, mutuallyExclusive);

      // no advice method following the rules was found
      if (cacheCollection == null || cacheCollection.isEmpty())
      {
         throw new NoMatchingAdviceException(properties, adviceType,
               adviceMatchingMessage.toString());
      }
      synchronized(cacheCollection)
      {
         LinkedList<AdviceInfo> rankedAdvices =
               new LinkedList<AdviceInfo>(cacheCollection);
         // validate and retrive best match
         AdviceInfo bestAdvice = bestValidAdvice(rankedAdvices, properties,
               contextRules);
         if (bestAdvice == null)
         {
            throw new NoMatchingAdviceException(properties, adviceType,
                  adviceMatchingMessage.toString());
         }
         // assign best Advice info to properties
         bestAdvice.assignAdviceInfo(properties);
         properties.setAdviceOverloaded(rankedAdvices.size() > 1);
View Full Code Here

         if (methods.length == 0)
         {
            if (AspectManager.verbose)
            {
               throw new NoMatchingAdviceException(properties, adviceType,
                     ": no method named " + properties.getAdviceName() +
                     " was found");
            }
            return null;
         }
View Full Code Here

/*     */
/* 362 */       if (methods.length == 0)
/*     */       {
/* 364 */         if (AspectManager.verbose)
/*     */         {
/* 366 */           throw new NoMatchingAdviceException(properties, this.adviceType, ": no method named " + properties.getAdviceName() + " was found");
/*     */         }
/*     */
/* 370 */         return null;
/*     */       }
/*     */
View Full Code Here

               properties, contextRules, mutuallyExclusive);

      // no advice method following the rules was found
      if (cacheCollection == null || cacheCollection.isEmpty())
      {
         throw new NoMatchingAdviceException(properties, adviceType,
               adviceMatchingMessage.toString());
      }
      synchronized(cacheCollection)
      {
         LinkedList<AdviceInfo> rankedAdvices =
               new LinkedList<AdviceInfo>(cacheCollection);
         // validate and retrive best match
         AdviceInfo bestAdvice = bestValidAdvice(rankedAdvices, properties,
               contextRules);
         if (bestAdvice == null)
         {
            throw new NoMatchingAdviceException(properties, adviceType,
                  adviceMatchingMessage.toString());
         }
         // assign best Advice info to properties
         bestAdvice.assignAdviceInfo(properties);
         properties.setAdviceOverloaded(rankedAdvices.size() > 1);
View Full Code Here

         if (methods.length == 0)
         {
            if (AspectManager.verbose)
            {
               throw new NoMatchingAdviceException(properties, adviceType,
                     ": no method named " + properties.getAdviceName() +
                     " was found");
            }
            return null;
         }
View Full Code Here

TOP

Related Classes of org.jboss.aop.advice.NoMatchingAdviceException

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.