Class MappedPropertyDescriptor.MappedMethodReference

  • Enclosing class:
    MappedPropertyDescriptor

    private static class MappedPropertyDescriptor.MappedMethodReference
    extends java.lang.Object
    Holds a Method in a SoftReference so that it it doesn't prevent any ClassLoader being garbage collected, but tries to re-create the method if the method reference has been released. See http://issues.apache.org/jira/browse/BEANUTILS-291
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String className  
      private java.lang.ref.Reference<java.lang.Class<?>> classRef  
      private java.lang.String methodName  
      private java.lang.ref.Reference<java.lang.reflect.Method> methodRef  
      private java.lang.String[] writeParamClassNames  
      private java.lang.ref.Reference<java.lang.Class<?>> writeParamTypeRef0  
      private java.lang.ref.Reference<java.lang.Class<?>> writeParamTypeRef1  
    • Constructor Summary

      Constructors 
      Constructor Description
      MappedMethodReference​(java.lang.reflect.Method m)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.reflect.Method get()  
      private java.lang.Class<?> reLoadClass()
      Try to re-load the class
      private java.lang.Class<?> reLoadClass​(java.lang.String name)
      Try to re-load the class
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • className

        private java.lang.String className
      • methodName

        private java.lang.String methodName
      • methodRef

        private java.lang.ref.Reference<java.lang.reflect.Method> methodRef
      • classRef

        private java.lang.ref.Reference<java.lang.Class<?>> classRef
      • writeParamTypeRef0

        private java.lang.ref.Reference<java.lang.Class<?>> writeParamTypeRef0
      • writeParamTypeRef1

        private java.lang.ref.Reference<java.lang.Class<?>> writeParamTypeRef1
      • writeParamClassNames

        private java.lang.String[] writeParamClassNames
    • Constructor Detail

      • MappedMethodReference

        MappedMethodReference​(java.lang.reflect.Method m)
    • Method Detail

      • get

        private java.lang.reflect.Method get()
      • reLoadClass

        private java.lang.Class<?> reLoadClass()
        Try to re-load the class
      • reLoadClass

        private java.lang.Class<?> reLoadClass​(java.lang.String name)
        Try to re-load the class