org.shiftone.cache.config
Class BeanWrapper
java.lang.Object
org.shiftone.cache.config.BeanWrapper
- public class BeanWrapper
- extends java.lang.Object
This class treats methods case-insensitive. This can cause a problem if
their are two setters with the same name in different case. Don't do that.
- Version:
- $Revision: 1.10 $
- Author:
- Jeff Drost
Constructor Summary |
BeanWrapper(java.lang.Object object)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanWrapper
public BeanWrapper(java.lang.Object object)
getWrappedObjectClass
public java.lang.Class getWrappedObjectClass()
getWrappedObject
public java.lang.Object getWrappedObject()
getSetter
public java.lang.reflect.Method getSetter(java.lang.String name)
throws java.lang.NoSuchMethodException
- Throws:
java.lang.NoSuchMethodException
getType
public java.lang.Class getType(java.lang.String name)
throws java.lang.NoSuchMethodException
- Throws:
java.lang.NoSuchMethodException
setProperty
public void setProperty(java.lang.String name,
java.lang.String value)
throws java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.IllegalArgumentException,
java.lang.reflect.InvocationTargetException,
java.lang.ClassNotFoundException
- Throws:
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException
setProperty
public void setProperty(java.lang.String name,
java.lang.Object objectValue)
throws java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.IllegalArgumentException,
java.lang.reflect.InvocationTargetException
- Throws:
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException