org.apache.commons.beanutils
Class MappedPropertyDescriptor.MappedMethodReference

java.lang.Object
  extended by org.apache.commons.beanutils.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
private  java.lang.String className
           
private  java.lang.ref.Reference classRef
           
private  java.lang.String methodName
           
private  java.lang.ref.Reference methodRef
           
private  java.lang.String[] writeParamClassNames
           
private  java.lang.ref.Reference writeParamTypeRef0
           
private  java.lang.ref.Reference writeParamTypeRef1
           
 
Constructor Summary
MappedPropertyDescriptor.MappedMethodReference(java.lang.reflect.Method m)
           
 
Method Summary
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 methodRef

classRef

private java.lang.ref.Reference classRef

writeParamTypeRef0

private java.lang.ref.Reference writeParamTypeRef0

writeParamTypeRef1

private java.lang.ref.Reference writeParamTypeRef1

writeParamClassNames

private java.lang.String[] writeParamClassNames
Constructor Detail

MappedPropertyDescriptor.MappedMethodReference

MappedPropertyDescriptor.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



Copyright (c) 2000-2008 - Apache Software Foundation