Package org.infinispan.commons.util
Class BeanUtils
- java.lang.Object
- 
- org.infinispan.commons.util.BeanUtils
 
- 
 public class BeanUtils extends Object Simple JavaBean manipulation helper methods- Since:
- 4.0
- Author:
- Manik Surtani (manik@jboss.org)
 
- 
- 
Constructor SummaryConstructors Constructor Description BeanUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static StringfluentSetterName(String fieldName)Retrieves a setter name based on a field name passed instatic MethodgetterMethod(Class<?> target, Class<?> componentClass)Returns a Method object corresponding to a getter that retrieves an instance of componentClass from target.static StringgetterName(Class<?> componentClass)Returns a getter for a given classstatic MethodsetterMethod(Class<?> target, Class<?> componentClass)Returns a Method object corresponding to a setter that sets an instance of componentClass from target.static StringsetterName(Class<?> componentClass)Returns a setter for a given classstatic StringsetterName(String fieldName)Retrieves a setter name based on a field name passed in
 
- 
- 
- 
Method Detail- 
setterNamepublic static String setterName(String fieldName) Retrieves a setter name based on a field name passed in- Parameters:
- fieldName- field name to find setter for
- Returns:
- name of setter method
 
 - 
fluentSetterNamepublic static String fluentSetterName(String fieldName) Retrieves a setter name based on a field name passed in- Parameters:
- fieldName- field name to find setter for
- Returns:
- name of setter method
 
 - 
getterNamepublic static String getterName(Class<?> componentClass) Returns a getter for a given class- Parameters:
- componentClass- class to find getter for
- Returns:
- name of getter method
 
 - 
setterNamepublic static String setterName(Class<?> componentClass) Returns a setter for a given class- Parameters:
- componentClass- class to find setter for
- Returns:
- name of getter method
 
 - 
getterMethodpublic static Method getterMethod(Class<?> target, Class<?> componentClass) Returns a Method object corresponding to a getter that retrieves an instance of componentClass from target.- Parameters:
- target- class that the getter should exist on
- componentClass- component to get
- Returns:
- Method object, or null of one does not exist
 
 - 
setterMethodpublic static Method setterMethod(Class<?> target, Class<?> componentClass) Returns a Method object corresponding to a setter that sets an instance of componentClass from target.- Parameters:
- target- class that the setter should exist on
- componentClass- component to set
- Returns:
- Method object, or null of one does not exist
 
 
- 
 
-