info.joseluismartin.util
Class BeanUtils

java.lang.Object
  extended by org.springframework.beans.BeanUtils
      extended by info.joseluismartin.util.BeanUtils

public abstract class BeanUtils
extends org.springframework.beans.BeanUtils

Some static funtions added to spring BeanUtils

Author:
Jose Luis Martin - (jlm@joseluismartin.info)

Constructor Summary
BeanUtils()
           
 
Method Summary
static void copyProperty(Object source, Object dest, String propertyName)
          Copy a property, avoid Execeptions
static Object getProperty(Object bean, String name)
          Get property value null if none
static org.springframework.beans.PropertyValue[] getPropertyValues(Object obj)
          Get PropertyValues from Object
static void setProperty(Object bean, String name, Object value)
          Set property, without trowing exceptions on errors
 
Methods inherited from class org.springframework.beans.BeanUtils
copyProperties, copyProperties, copyProperties, findDeclaredMethod, findDeclaredMethodWithMinimalParameters, findEditorByConvention, findMethod, findMethodWithMinimalParameters, findMethodWithMinimalParameters, findPropertyForMethod, findPropertyType, getPropertyDescriptor, getPropertyDescriptors, getWriteMethodParameter, instantiate, instantiateClass, instantiateClass, instantiateClass, isSimpleProperty, isSimpleValueType, resolveSignature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanUtils

public BeanUtils()
Method Detail

getPropertyValues

public static org.springframework.beans.PropertyValue[] getPropertyValues(Object obj)
Get PropertyValues from Object

Parameters:
obj - Object to get PropertyValues
Returns:
the property values

copyProperty

public static void copyProperty(Object source,
                                Object dest,
                                String propertyName)
Copy a property, avoid Execeptions

Parameters:
source - source bean
dest - destination bean
propertyName - the propertyName

setProperty

public static void setProperty(Object bean,
                               String name,
                               Object value)
Set property, without trowing exceptions on errors

Parameters:
bean - bean name
name - name
value - value

getProperty

public static Object getProperty(Object bean,
                                 String name)
Get property value null if none

Parameters:
bean - beam
name - name
Returns:
the property value


Copyright © 2012 JDAL. All Rights Reserved.