org.milyn.javabean
Class BeanUtils

java.lang.Object
  extended by org.milyn.javabean.BeanUtils

public abstract class BeanUtils
extends Object

Bean utility methods.

Author:
tom.fennelly@gmail.com

Constructor Summary
BeanUtils()
           
 
Method Summary
static Object convertListToArray(List<?> list, Class<?> arrayClass)
          Convert the supplied List into an array of the specified array type.
static Method createSetterMethod(String setterName, Object bean, Class<?> setterParamType)
          Create the bean setter method instance for this visitor.
static Object getBean(String beanId, org.milyn.container.ExecutionContext execContext)
          Deprecated.  
 
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

createSetterMethod

public static Method createSetterMethod(String setterName,
                                        Object bean,
                                        Class<?> setterParamType)
Create the bean setter method instance for this visitor.

Parameters:
setterName - The setter method name.
setterParamType -
Returns:
The bean setter method.

getBean

@Deprecated
public static Object getBean(String beanId,
                                        org.milyn.container.ExecutionContext execContext)
Deprecated. 

Get the bean instance on which this populator instance is to set data.

Parameters:
execContext - The execution context.
Returns:
The bean instance.

convertListToArray

public static Object convertListToArray(List<?> list,
                                        Class<?> arrayClass)
Convert the supplied List into an array of the specified array type.

Parameters:
list - The List instance to be converted.
arrayClass - The array type.
Returns:
The array.


Copyright © 2018. All rights reserved.