Package org.jboss.aop.advice

Examples of org.jboss.aop.advice.AdviceMethodProperties


   }

   protected AdviceMethodProperties getAdviceMethodProperties(AdviceSetup setup)
   {
      Constructor ctor = ((ConByMethodInfo)info).getConstructor();
      AdviceMethodProperties properties = new AdviceMethodProperties(
               setup.getAspectClass(),
               setup.getAdviceName(),
               info.getClass(),
               INVOCATION_TYPE,
               ctor.getDeclaringClass(),
               ctor.getParameterTypes(),
               ctor.getExceptionTypes(),
               null,
               false,
               ((ConByMethodInfo) info).getCallingClass(),
               hasCallingObject());
      properties.setOptionalParameters(OptionalParameters.CALLER);
      return properties;
   }
View Full Code Here


            //We are invoking a static method/ctor, do not include advice in chain
            return false;
         }
     
         boolean result = false;
         AdviceMethodProperties properties = AdviceMethodFactory.AROUND.
            findAdviceMethod(generator.getAdviceMethodProperties(setup));
         if (properties == null || properties.getAdviceMethod() == null)
         {
            // throw new RuntimeException("DEBUG ONLY Properties was null " +
            // aroundSetups[i].getAspectClass().getName() + "." + aroundSetups[i].getAdviceName());
            return false;
         }
View Full Code Here

      }

      public boolean appendAdviceCall(AdviceSetup setup, String key,
            StringBuffer beforeCall, StringBuffer call, JoinPointGenerator generator) throws NotFoundException
      {
         AdviceMethodProperties properties = setup.getAdviceMethodProperties();
         if (properties != null && !properties.isAdviceVoid())
         {
            call.append(key);
         }
         return super.appendAdviceCall(setup, beforeCall, call, false, generator);
      }
View Full Code Here

   }

   protected AdviceMethodProperties getAdviceMethodProperties(AdviceSetup setup)
   {
      Constructor ctor = ((ConstructorInfo)info).getConstructor();
      return new AdviceMethodProperties(
            setup.getAspectClass(),
            setup.getAdviceName(),
            info.getClass(),
            INVOCATION_TYPE,
            ctor.getDeclaringClass(),
View Full Code Here

   }

   protected AdviceMethodProperties getAdviceMethodProperties(AdviceSetup setup)
   {
      Method method = ((MethodInfo)info).getAdvisedMethod();
      return new AdviceMethodProperties(
               setup.getAspectClass(),
               setup.getAdviceName(),
               info.getClass(),
               INVOCATION_TYPE,
               method.getReturnType(),
View Full Code Here

   }

   protected AdviceMethodProperties getAdviceMethodProperties(AdviceSetup setup)
   {
      Constructor ctor = ((ConByConInfo)info).getConstructor();
      AdviceMethodProperties properties = new AdviceMethodProperties(
            setup.getAspectClass(),
            setup.getAdviceName(),
            info.getClass(),
            INVOCATION_TYPE,
            ctor.getDeclaringClass(),
            ctor.getParameterTypes(),
            ctor.getExceptionTypes(),
            null, false,
            ((ConByConInfo) info).getCallingClass(),
            true);
      properties.setOptionalParameters(AdviceMethodProperties.OptionalParameters.CALLER);
      return properties;
   }
View Full Code Here

TOP

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

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.