Examples of MethodPersistentReference


Examples of com.ovea.jetty.session.serializer.jboss.serial.references.MethodPersistentReference

    public Method getReadResolveMethod() {
        return (Method) readResolveMethod.get();
    }

    public void setReadResolveMethod(Method readResolveMethod) {
        this.readResolveMethod = new MethodPersistentReference(readResolveMethod, REFERENCE_TYPE_IN_USE);
    }
View Full Code Here

Examples of com.ovea.jetty.session.serializer.jboss.serial.references.MethodPersistentReference

    public Method getWriteReplaceMethod() {
        return (Method) writeReplaceMethod.get();
    }

    public void setWriteReplaceMethod(Method writeReplaceMethod) {
        this.writeReplaceMethod = new MethodPersistentReference(writeReplaceMethod, REFERENCE_TYPE_IN_USE);
    }
View Full Code Here

Examples of com.ovea.jetty.session.serializer.jboss.serial.references.MethodPersistentReference

    public Method getPrivateMethodRead() {
        return (Method) privateMethodRead.get();
    }

    public void setPrivateMethodRead(Method privateMethodRead) {
        this.privateMethodRead = new MethodPersistentReference(privateMethodRead, REFERENCE_TYPE_IN_USE);
    }
View Full Code Here

Examples of com.ovea.jetty.session.serializer.jboss.serial.references.MethodPersistentReference

    public Method getPrivateMethodWrite() {
        return (Method) privateMethodWrite.get();
    }

    public void setPrivateMethodWrite(Method privateMethodWrite) {
        this.privateMethodWrite = new MethodPersistentReference(privateMethodWrite, REFERENCE_TYPE_IN_USE);
    }
View Full Code Here

Examples of org.jboss.aop.util.reference.MethodPersistentReference

            // (in superclasses) are not added either.
            if(!java.lang.reflect.Modifier.isVolatile( declaredMethods[i].getModifiers()))
            {
               long hash = org.jboss.aop.util.MethodHashing.methodHash(declaredMethods[i]);
               if(!ignoredHash.contains(new Long(hash)))
                  advised.put(new Long(hash), new MethodPersistentReference(declaredMethods[i], PersistentReference.REFERENCE_SOFT));
            }
            else
            {
               long hash = org.jboss.aop.util.MethodHashing.methodHash(declaredMethods[i]);
               ignoredHash.add(new Long(hash));
View Full Code Here

Examples of org.jboss.aop.util.reference.MethodPersistentReference

            // (in superclasses) are not added either.
            if(!java.lang.reflect.Modifier.isVolatile( declaredMethods[i].getModifiers()))
            {
               long hash = org.jboss.aop.util.MethodHashing.methodHash(declaredMethods[i]);
               if(!ignoredHash.contains(Long.valueOf(hash)))
                  advised.put(Long.valueOf(hash), new MethodPersistentReference(declaredMethods[i], PersistentReference.REFERENCE_WEAK));
            }
            else
            {
               long hash = org.jboss.aop.util.MethodHashing.methodHash(declaredMethods[i]);
               ignoredHash.add(Long.valueOf(hash));
View Full Code Here

Examples of org.jboss.aop.util.reference.MethodPersistentReference

   }

   public Method getMethod()
   {
      MethodPersistentReference ref = proxy.getMethodMap().get(Long.valueOf(methodHash));
      return (Method)ref.get();
   }
View Full Code Here

Examples of org.jboss.aop.util.reference.MethodPersistentReference

   }

   public static Method findMethodByHash(Class<?> clazz, Long hash) throws Exception
   {
      Map<Long, MethodPersistentReference> hashes = getMethodHashes(clazz);
      MethodPersistentReference ref = hashes.get(hash);
      if (ref != null)
      {
         return ref.getMethod();
      }

      if (clazz.isInterface())
      {
         final Class<?>[] interfaces = clazz.getInterfaces() ;
View Full Code Here

Examples of org.jboss.aop.util.reference.MethodPersistentReference

      {
         try
         {
            long hash = methodHash(methods[i]);
            //Use Clebert's Persistent References so we don't get memory leaks
            map.put(Long.valueOf(hash), new MethodPersistentReference(methods[i], PersistentReference.REFERENCE_SOFT));
         }
         catch (Exception ignore)
         {
         }
      }
View Full Code Here

Examples of org.jboss.aop.util.reference.MethodPersistentReference

   }

   public static Method findMethodByHash(Class clazz, Long hash) throws Exception
   {
      Map hashes = getMethodHashes(clazz);
      MethodPersistentReference ref = (MethodPersistentReference)hashes.get(hash);
      if (ref != null)
      {
         return ref.getMethod();
      }

      if (clazz.isInterface())
      {
         final Class[] interfaces = clazz.getInterfaces() ;
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.