Examples of TLongObjectHashMap


Examples of gnu.trove.TLongObjectHashMap

         if (calledClassesMap == null)
         {
            calledClassesMap = new HashMap();
            conCalledByMethodInterceptors.put(callingMethodHash, calledClassesMap);
         }
         TLongObjectHashMap calledMethodsMap = (TLongObjectHashMap) calledClassesMap.get(calledClass);
         if (calledMethodsMap == null)
         {
            calledMethodsMap = new TLongObjectHashMap();
            calledClassesMap.put(calledClass, calledMethodsMap);
         }

         ConByMethodInfo info = createConByMethodInfo(calledClass, callingMethod, callingMethodHash, calledCon, calledConHash);
         calledMethodsMap.put(calledConHash, info);
         return info;
      }
View Full Code Here

Examples of gnu.trove.TLongObjectHashMap

         if (callingMethod == null)
         {
            callingMethod = new HashMap();
            conCalledByMethodBindings.put(callingMethodHash, callingMethod);
         }
         TLongObjectHashMap classMap = (TLongObjectHashMap) callingMethod.get(calledClass);
         if (classMap == null)
         {
            classMap = new TLongObjectHashMap();
            callingMethod.put(calledClass, classMap);
         }
         ArrayList bindings = (ArrayList) classMap.get(calledConHash);
         if (bindings == null)
         {
            bindings = new ArrayList();
            classMap.put(calledConHash, bindings);
         }
      }
View Full Code Here

Examples of gnu.trove.TLongObjectHashMap

      }

      private ConByMethodInfo getConCalledByMethod(long callingMethodHash, String calledClass, long calledConHash)
      {
         HashMap calledClasses = (HashMap) conCalledByMethodInterceptors.get(callingMethodHash);
         TLongObjectHashMap calledMethods = (TLongObjectHashMap) calledClasses.get(calledClass);
         ConByMethodInfo info = (ConByMethodInfo) calledMethods.get(calledConHash);
         return info;
      }
View Full Code Here

Examples of gnu.trove.TLongObjectHashMap

            final Class definedClass,
            final ClassMetaData definedClassMetaData,
            final System system) {

        if (!m_joinPointAdvicesMap.containsKey(classHash)) {
            m_joinPointAdvicesMap.put(classHash, new TLongObjectHashMap());
        }

        Map pointcutTypeToAdvicesMap = setUpPointcutTypeMap();

        TLongObjectHashMap joinPointHashToPointcutTypesMap = (TLongObjectHashMap)m_joinPointAdvicesMap.get(classHash);
        joinPointHashToPointcutTypesMap.put(joinPointHash, pointcutTypeToAdvicesMap);

        switch (joinPointType) {

            case JoinPointType.METHOD_EXECUTION:
                registerMethodExecutionJoinPoint(
View Full Code Here

Examples of gnu.trove.TLongObjectHashMap

     * @param classHash
     * @param joinPointHash
     * @return the advices attached to the join point
     */
    public Map getAdvicesForJoinPoint(final long classHash, final long joinPointHash) {
        TLongObjectHashMap joinPoints = (TLongObjectHashMap)m_joinPointAdvicesMap.get(classHash);
        return (Map)joinPoints.get(joinPointHash);
    }
View Full Code Here

Examples of gnu.trove.TLongObjectHashMap

      if (calledClassesMap == null)
      {
         calledClassesMap = new HashMap<String, TLongObjectHashMap>();
         methodCalledByConInterceptors[callingIndex] = calledClassesMap;
      }
      TLongObjectHashMap calledMethodsMap = calledClassesMap.get(calledClass);
      if (calledMethodsMap == null)
      {
         calledMethodsMap = new TLongObjectHashMap();
         calledClassesMap.put(calledClass, calledMethodsMap);
      }

      //The standard MethodCalledByXXXXInvocation class calls by reflection and needs access
      SecurityActions.setAccessible(calledMethod);

      // FIXME ClassLoader - how do we know the class is visible from the context classloader?
      Class<?> calledClazz = SecurityActions.getContextClassLoader().loadClass(calledClass);
      MethodByConInfo info = new MethodByConInfo(this, calledClazz, callingClass, callingIndex, calledMethod, calledMethodHash, null);
      calledMethodsMap.put(calledMethodHash, info);
      return info;
   }
View Full Code Here

Examples of gnu.trove.TLongObjectHashMap

      if (calledClassesMap == null)
      {
         calledClassesMap = new HashMap<String, TLongObjectHashMap>();
         conCalledByConInterceptors[callingIndex] = calledClassesMap;
      }
      TLongObjectHashMap calledMethodsMap = calledClassesMap.get(calledClass);
      if (calledMethodsMap == null)
      {
         calledMethodsMap = new TLongObjectHashMap();
         calledClassesMap.put(calledClass, calledMethodsMap);
      }
      ConByConInfo info = createConByConInfo(callingClass, callingIndex, calledClass, calledCon, calledConHash);
      calledMethodsMap.put(calledConHash, info);
      return info;
   }
View Full Code Here

Examples of gnu.trove.TLongObjectHashMap

      }

      public ArrayList<AdviceBinding> getConCalledByMethodBindings(long callingHash, String cname, long calledHash)
      {
         HashMap<String, TLongObjectHashMap> calledClasses = (HashMap<String, TLongObjectHashMap>) conCalledByMethodBindings.get(callingHash);
         TLongObjectHashMap calledCons = calledClasses.get(cname);
         return (ArrayList<AdviceBinding>) calledCons.get(calledHash);
      }
View Full Code Here

Examples of gnu.trove.TLongObjectHashMap

            long callingHash = callingKeys[i];
            HashMap<String, TLongObjectHashMap> calledClasses = (HashMap<String, TLongObjectHashMap>) conCalledByMethodInterceptors.get(callingHash);
            for (Map.Entry<String, TLongObjectHashMap> entry : calledClasses.entrySet())
            {
               String cname = entry.getKey();
               TLongObjectHashMap calledMethods = entry.getValue();
               long[] calledKeys = calledMethods.keys();
               for (int j = 0; j < calledKeys.length; j++)
               {
                  long calledHash = calledKeys[j];
                  ArrayList<AdviceBinding> bindings = getConCalledByMethodBindings(callingHash, cname, calledHash);
                  bindConCalledByMethodInterceptorChain(bindings, callingHash, cname, calledHash);
View Full Code Here

Examples of gnu.trove.TLongObjectHashMap

         {
            synchronized(lazyCollectionLock)
            {
               if (conCalledByMethodBindings == UnmodifiableEmptyCollections.EMPTY_TLONG_OBJECT_HASHMAP)
               {
                  conCalledByMethodBindings = new TLongObjectHashMap();
               }
               if (backrefConCalledByMethodBindings == UnmodifiableEmptyCollections.EMPTY_HASHMAP)
               {
                  backrefConCalledByMethodBindings = new HashMap<String, ArrayList<ArrayList<AdviceBinding>>>();
               }
               if (conCalledByMethodInterceptors == UnmodifiableEmptyCollections.EMPTY_TLONG_OBJECT_HASHMAP)
               {
                  conCalledByMethodInterceptors = new TLongObjectHashMap();
               }
            }
         }

         if (System.getSecurityManager() == null)
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.