Examples of TLongObjectHashMap


Examples of gnu.trove.TLongObjectHashMap

            lockWrite();
            try
            {
               if (methodCalledByMethodBindings == UnmodifiableEmptyCollections.EMPTY_TLONG_OBJECT_HASHMAP)
               {
                  methodCalledByMethodBindings = new TLongObjectHashMap();
               }
               if (backrefMethodCalledByMethodBindings == UnmodifiableEmptyCollections.EMPTY_HASHMAP)
               {
                  backrefMethodCalledByMethodBindings = new HashMap();
               }
               if (methodCalledByMethodInterceptors == UnmodifiableEmptyCollections.EMPTY_TLONG_OBJECT_HASHMAP)
               {
                  methodCalledByMethodInterceptors = new TLongObjectHashMap();
               }
            }
            finally
            {
               unlockWrite();
View Full Code Here

Examples of gnu.trove.TLongObjectHashMap

         if (callingMethod == null)
         {
            callingMethod = new HashMap();
            methodCalledByMethodBindings.put(callingMethodHash, callingMethod);
         }
         TLongObjectHashMap classMap = (TLongObjectHashMap) callingMethod.get(calledClass);
         if (classMap == null)
         {
            classMap = new TLongObjectHashMap();
            callingMethod.put(calledClass, classMap);
         }
         ArrayList bindings = (ArrayList) classMap.get(calledMethodHash);
         boolean createdBindings = false;
         if (bindings == null)
         {
            bindings = new ArrayList();
            classMap.put(calledMethodHash, bindings);
            createdBindings = true;
         }
         if (!bindings.contains(binding)) bindings.add(binding);
     
         // this is so that we can undeploy a caller
View Full Code Here

Examples of gnu.trove.TLongObjectHashMap

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

Examples of gnu.trove.TLongObjectHashMap

         if (calledClassesMap == null)
         {
            calledClassesMap = new HashMap();
            methodCalledByMethodInterceptors.put(callingMethodHash, calledClassesMap);
         }
         TLongObjectHashMap calledMethodsMap = (TLongObjectHashMap) calledClassesMap.get(calledClass);
         if (calledMethodsMap == null)
         {
            calledMethodsMap = new TLongObjectHashMap();
            calledClassesMap.put(calledClass, calledMethodsMap);
         }
         //The standard MethodCalledByXXXXInvocation class calls by reflection and needs access
         calledMethod.setAccessible(true);

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

Examples of gnu.trove.TLongObjectHashMap

      private ArrayList getCallerBindings(long callingHash, String cname, long calledHash)
      {
         //Called via resolveCallerMethodInfo, maps are initialised
         HashMap calledClasses = (HashMap) methodCalledByMethodBindings.get(callingHash);
         TLongObjectHashMap calledMethods = (TLongObjectHashMap) calledClasses.get(cname);
         return (ArrayList) calledMethods.get(calledHash);
      }
View Full Code Here

Examples of gnu.trove.TLongObjectHashMap

      private MethodByMethodInfo getCallerMethodInfo(long callingMethodHash, String calledClass, long calledMethodHash)
      {
         //Called via resolveCallerMethodInfo, maps are initialised
         HashMap calledClasses = (HashMap) methodCalledByMethodInterceptors.get(callingMethodHash);
         TLongObjectHashMap calledMethods = (TLongObjectHashMap) calledClasses.get(calledClass);
         MethodByMethodInfo info = (MethodByMethodInfo) calledMethods.get(calledMethodHash);
         return info;
      }
View Full Code Here

Examples of gnu.trove.TLongObjectHashMap

      }

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

Examples of gnu.trove.TLongObjectHashMap

            Iterator classesIterator = calledClasses.entrySet().iterator();
            while (classesIterator.hasNext())
            {
               Map.Entry entry = (Map.Entry) classesIterator.next();
               String cname = (String) entry.getKey();
               TLongObjectHashMap calledMethods = (TLongObjectHashMap) entry.getValue();
               long[] calledKeys = calledMethods.keys();
               for (int j = 0; j < calledKeys.length; j++)
               {
                  long calledHash = calledKeys[j];
                  ArrayList bindings = getConCalledByMethodBindings(callingHash, cname, calledHash);
                  bindConCalledByMethodInterceptorChain(bindings, callingHash, cname, calledHash);
View Full Code Here

Examples of gnu.trove.TLongObjectHashMap

            lockWrite();
            try
            {
               if (conCalledByMethodBindings == UnmodifiableEmptyCollections.EMPTY_TLONG_OBJECT_HASHMAP)
               {
                  conCalledByMethodBindings = new TLongObjectHashMap();
               }
               if (backrefConCalledByMethodBindings == UnmodifiableEmptyCollections.EMPTY_HASHMAP)
               {
                  backrefConCalledByMethodBindings = new HashMap();
               }
               if (conCalledByMethodInterceptors == UnmodifiableEmptyCollections.EMPTY_TLONG_OBJECT_HASHMAP)
               {
                  conCalledByMethodInterceptors = new TLongObjectHashMap();
               }
            }
            finally
            {
               unlockWrite();
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(calledMethodHash);
         boolean createdBindings = false;
         if (bindings == null)
         {
            bindings = new ArrayList();
            classMap.put(calledMethodHash, bindings);
            createdBindings = true;
         }
         if (!bindings.contains(binding)) bindings.add(binding);
     
         // this is so that we can undeploy a caller
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.