Class BeanHelper
java.lang.Object
com.inductiveautomation.ignition.common.util.BeanHelper
This is a thin wrapper around BeanInfo, which has some more helpful conveniences for calling getters and setters
 without all the syntax noise
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<T extends Annotation>
 TfindAnnotation(String property, Class<T> annotationClass) Searches both the read method and the write method (in that order) for the annotation of the given classfindProperty(String property) Finds the property with a given name.static BeanHelperUsing this static getter will make use of a static cache internallyReads the value of the given property from the objectGets the value of a property on a bean.Class<?>getType()voidvoidSets a value for the bean.
- 
Constructor Details- 
BeanHelperCreate a BeanHelper for the given class.
 
- 
- 
Method Details- 
forClassUsing this static getter will make use of a static cache internally
- 
getType
- 
findAllProperties
- 
findPropertyFinds the property with a given name. If the property doesn't exist, an IllegalArgumentException will be thrown
- 
findAnnotationSearches both the read method and the write method (in that order) for the annotation of the given class
- 
getpublic Object get(Object self, String property) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException Reads the value of the given property from the object
- 
getQuietGets the value of a property on a bean. Upon error, messages are logged to the logger and null is returned, except for IllegalAccessExceptions, which are thrown in RuntimeException wrappers.
- 
setpublic void set(Object self, String property, Object value) throws InvocationTargetException, IllegalAccessException, IllegalArgumentException 
- 
setQuietSets a value for the bean. Errors are logged to the logger for this BeanHelper, except for IllegalAccessExceptions, which are thrown in RuntimeException wrappers.
 
-