Package org.jboss.aop.advice

Examples of org.jboss.aop.advice.ClassifiedBindingAndPointcutCollection


         Class<?> called = SecurityActions.getClassLoader(callingClass).loadClass(calledClass);
         Constructor<?> calledCon = MethodHashing.findConstructorByHash(called, calledConHash);
         if (calledCon == null) throw new RuntimeException("Unable to figure out calledcon of a caller pointcut");

         boolean matched = false;
         ClassifiedBindingAndPointcutCollection bindingCol = manager.getBindingCollection();
         for (AdviceBinding binding : bindingCol.getConstructorCallBindings())
         {
            if (binding.getPointcut().matchesCall(this, callingConstructor, called, calledCon))
            {
               addConstructorCalledByConPointcut(callingIndex, calledClass, calledConHash, binding);
               matched = true;
View Full Code Here


   public HashSet<AspectDefinition> getAspects()
   {
      if (!initialisedAspects)
      {
         ClassifiedBindingAndPointcutCollection bindingCol = advisor.getManager().getBindingCollection();
         AspectManager.lock.lockRead();
         try
         {
            bindMethodAdvices(clazz, bindingCol);
            bindConstructorAdvices(bindingCol);
View Full Code Here

    * @return a {@link ClassifiedBindingAndPointcutCollection}
    * @see Domain#ini
    */
   protected ClassifiedBindingAndPointcutCollection createBindingCollection()
   {
      return new ClassifiedBindingAndPointcutCollection();
   }
View Full Code Here

      makeInterceptorChains();
   }

   private void makeInterceptorChains()
   {
      ClassifiedBindingAndPointcutCollection bindingCol = manager.getBindingCollection();
      AspectManager.lock.lockRead();
      try
      {
         Collection<AdviceBinding> bindings = bindingCol.getConstructorExecutionBindings();
         for (AdviceBinding binding : bindings)
         {
            if (AspectManager.verbose && logger.isDebugEnabled()) logger.debug("iterate binding " + binding.getName());
            resolveConstructorPointcut(binding);
         }
         bindings = bindingCol.getMethodExecutionBindings();
         for (AdviceBinding binding : bindings)
         {
            if (AspectManager.verbose && logger.isDebugEnabled()) logger.debug("iterate binding " + binding.getName());
            resolveMethodPointcut(binding);
         }
View Full Code Here

   }

   @SuppressWarnings("deprecation")
   private void resolveBindings(AspectManager manager)
   {
      ClassifiedBindingAndPointcutCollection bindingCol = manager.getBindingCollection();
      for (AdviceBinding binding: bindingCol.getFieldReadBindings())
      {
         if (AspectManager.verbose && logger.isDebugEnabled())
         {
            logger.debug("iterate binding " + binding.getName() + " " +
                  binding.getPointcut().getExpr());
         }
         resolveFieldPointcut(fieldReadInfos, fieldReadInterceptors, binding, false);
      }
      for (AdviceBinding binding: bindingCol.getFieldWriteBindings())
      {
         if (AspectManager.verbose && logger.isDebugEnabled())
         {
            logger.debug("iterate binding " + binding.getName() + " " +
                  binding.getPointcut().getExpr());
         }
         resolveFieldPointcut(fieldWriteInfos, fieldWriteInterceptors, binding, true);
      }
      for (AdviceBinding binding: bindingCol.getConstructionBindings())
      {
         if (AspectManager.verbose && logger.isDebugEnabled())
         {
            logger.debug("iterate binding " + binding.getName() + " " +
                  binding.getPointcut().getExpr());
         }
         resolveConstructionPointcut(binding);
      }
      for (AdviceBinding binding: bindingCol.getConstructorExecutionBindings())
      {
         if (AspectManager.verbose && logger.isDebugEnabled())
         {
            logger.debug("iterate binding " + binding.getName() + " " +
                  binding.getPointcut().getExpr());
         }
         resolveConstructorPointcut(binding);
      }
      for (AdviceBinding binding: bindingCol.getMethodExecutionBindings())
      {
         if (AspectManager.verbose && logger.isDebugEnabled())
         {
            logger.debug("iterate binding " + binding.getName() + " " +
                  binding.getPointcut().getExpr());
View Full Code Here

         Class<?> called = SecurityActions.getClassLoader(callingClass).loadClass(calledClass);
         Method calledMethod = MethodHashing.findMethodByHash(called, calledMethodHash);
         if (calledMethod == null) throw new RuntimeException("Unable to figure out calledmethod of a caller pointcut");

         boolean matched = false;
         ClassifiedBindingAndPointcutCollection bindingCol = manager.getBindingCollection();
         for (AdviceBinding binding : bindingCol.getConstructorCallBindings())
         {
            if (binding.getPointcut().matchesCall(this, callingConstructor, called, calledMethod))
            {
               addConstructorCallerPointcut(callingIndex, calledClass, calledMethodHash, binding);
               matched = true;
View Full Code Here

         Class<?> called = SecurityActions.getClassLoader(callingClass).loadClass(calledClass);
         Constructor<?> calledCon = MethodHashing.findConstructorByHash(called, calledConHash);
         if (calledCon == null) throw new RuntimeException("Unable to figure out calledcon of a caller pointcut");

         boolean matched = false;
         ClassifiedBindingAndPointcutCollection bindingCol = manager.getBindingCollection();
         for (AdviceBinding binding : bindingCol.getConstructorCallBindings())
         {
            if (binding.getPointcut().matchesCall(this, callingConstructor, called, calledCon))
            {
               addConstructorCalledByConPointcut(callingIndex, calledClass, calledConHash, binding);
               matched = true;
View Full Code Here

            Class<?> called = getClassLoader().loadClass(calledClass);
            Constructor<?> calledCon = MethodHashing.findConstructorByHash(called, calledConHash);
            if (calledCon == null) throw new RuntimeException("Unable to figure out calledcon of a constructor caller pointcut");

            boolean matched = false;
            ClassifiedBindingAndPointcutCollection bindingCol = manager.getBindingCollection();
            for (AdviceBinding binding : bindingCol.getConstructorCallBindings())
            {
               if (binding.getPointcut().matchesCall(ClassAdvisor.this, callingMethod, called, calledCon))
               {
                  addConstructorCalledByMethodPointcut(callingMethodHash, calledClass, calledConHash, binding);
                  matched = true;
View Full Code Here

    * @return a {@link ClassifiedBindingAndPointcutCollection}
    * @see Domain#ini
    */
   protected ClassifiedBindingAndPointcutCollection createBindingCollection()
   {
      return new ClassifiedBindingAndPointcutCollection();
   }
View Full Code Here

    * @return a {@link ClassifiedBindingAndPointcutCollection}
    * @see Domain#ini
    */
   protected ClassifiedBindingAndPointcutCollection createBindingCollection()
   {
      return new ClassifiedBindingAndPointcutCollection();
   }
View Full Code Here

TOP

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

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.