Package org.jboss.aop.pointcut

Examples of org.jboss.aop.pointcut.PointcutInfo


      initPointcutsMap();
      initPointcutInfosMap();
      synchronized (pointcuts)
      {
         pointcuts.put(pointcut.getName(), pointcut);
         pointcutInfos.put(pointcut.getName(), new PointcutInfo(pointcut, this.transformationStarted));
      }
      updatePointcutStats(pointcut);
   }
View Full Code Here


      initPointcutInfosMap();
      synchronized (pointcuts)
      {
         Pointcut pointcut = binding.getPointcut();
         pointcuts.put(pointcut.getName(), pointcut);
         pointcutInfos.put(pointcut.getName(), new PointcutInfo(pointcut, binding, this.transformationStarted));
         updatePointcutStats(pointcut);
      }

      synchronized (advisors)
      {
View Full Code Here

      }
      pointcuts.put(binding.getPointcut().getName(), binding.getPointcut());
     
      // create the pointcutinfo outside of methods to avoid duplicate creation
      // of pointcut infos
      PointcutInfo pointcutInfo = new PointcutInfo(binding.getPointcut(), binding,
            AspectManager.hasTransformationStarted());
      if (pointcutInfos == UnmodifiableEmptyCollections.EMPTY_LINKED_HASHMAP)
      {
         pointcutInfos = new LinkedHashMap<String, PointcutInfo>();
      }
      pointcutInfos.put(pointcutInfo.getPointcut().getName(), pointcutInfo);
     
      addGet(binding, pointcutInfo);
      addSet(binding, pointcutInfo);
      addConstruction(binding, pointcutInfo);
      addConstructorExecution(binding, pointcutInfo);
View Full Code Here

      if (pointcutInfos == UnmodifiableEmptyCollections.EMPTY_LINKED_HASHMAP)
      {
         pointcutInfos = new LinkedHashMap<String, PointcutInfo>();
      }
      PointcutInfo info = new PointcutInfo(pointcut, AspectManager.hasTransformationStarted());
      pointcutInfos.put(pointcut.getName(), info);

      addFieldReadPointcut(pointcut, info);
      addFieldWritePointcut(pointcut, info);
      addConstructionPointcut(pointcut, info);
View Full Code Here

      this.constructorExecutionPointcuts.remove(pc);
      this.methodExecutionPointcuts.remove(pc);
      this.constructorCallPointcuts.remove(pc);
      this.methodCallPointcuts.remove(pc);
     
      PointcutInfo info = pointcutInfos.remove(pc.getName());
      this.fieldReadPointcutInfos.remove(info);
      this.fieldWritePointcutInfos.remove(info);
      this.constructionPointcutInfos.remove(info);
      this.constructorExecutionPointcutInfos.remove(info);
      this.methodExecutionPointcutInfos.remove(info);
View Full Code Here

      initPointcutsMap();
      initPointcutInfosMap();
      synchronized (pointcuts)
      {
         pointcuts.put(pointcut.getName(), pointcut);
         pointcutInfos.put(pointcut.getName(), new PointcutInfo(pointcut, this.transformationStarted));
      }
      updatePointcutStats(pointcut);
   }
View Full Code Here

      initPointcutInfosMap();
      synchronized (pointcuts)
      {
         Pointcut pointcut = binding.getPointcut();
         pointcuts.put(pointcut.getName(), pointcut);
         pointcutInfos.put(pointcut.getName(), new PointcutInfo(pointcut, binding, this.transformationStarted));
         updatePointcutStats(pointcut);
      }

      synchronized (advisors)
      {
View Full Code Here

   {
      removePointcut(pointcut.getName());
      synchronized (pointcuts)
      {
         pointcuts.put(pointcut.getName(), pointcut);
         pointcutInfos.put(pointcut.getName(), new PointcutInfo(pointcut, this.transformationStarted));
      }
      updatePointcutStats(pointcut);
   }
View Full Code Here

      }
      synchronized (pointcuts)
      {
         Pointcut pointcut = binding.getPointcut();
         pointcuts.put(pointcut.getName(), pointcut);
         pointcutInfos.put(pointcut.getName(), new PointcutInfo(pointcut, binding, this.transformationStarted));
         updatePointcutStats(pointcut);
      }

      synchronized (advisors)
      {
View Full Code Here

      JoinpointClassification classification = JoinpointClassification.NOT_INSTRUMENTED;
      Collection pointcuts = advisor.getManager().getPointcutInfos().values();
      boolean dynamicAop = true;
      for (Iterator it = pointcuts.iterator(); it.hasNext(); )
      {
         PointcutInfo pointcutInfo = (PointcutInfo) it.next();
         // won't check matching of preparation pointcuts unnecessarily
         if (classification == JoinpointClassification.PREPARED && pointcutInfo.getBinding() == null)
         {
            continue;
         }
         Pointcut pointcut = pointcutInfo.getPointcut();
         if (joinpointMatcher.matches(pointcut, advisor, member)) {
            // only prepare if pointcut isn't associated with a binding
            if (pointcutInfo.getBinding() == null)
            {
               classification = JoinpointClassification.PREPARED;
            }
            else if (pointcutInfo.isDynamicAop())
            {
               classification = JoinpointClassification.DYNAMICALY_WRAPPED;
               synchronized (pointcutInfo)
               {
                  pointcutInfo.setDynamicAop(false);
               }
            }
            else
            {
               classification = JoinpointClassification.WRAPPED;
View Full Code Here

TOP

Related Classes of org.jboss.aop.pointcut.PointcutInfo

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.