I am using the BeanutilsBean.describe() method to capture data for the audit log. It works great - that’s not a question!
However, there are certain attributes that need not be verified. They are written as strings in a list. For example, if you have the DomainObject.myValue attribute, the list will contain "myValue" , so the result of a call made to DomainObject.getMyValue() will not be included in the audit trail.
Currently, the code gets all the attributes from BeanutilsBean.describe() , and then iterates through them to undo the unwanted ones.
What I want to do is configure an instance of BeanUtilsBean with such a list of attribute names to exclude it so that it never calls these methods. Therefore, in my example, DomainObject.getMyValue () is never called at all.
I cannot figure out if this is possible when viewing the API or code.
source share