|
From: Seth L. <set...@gm...> - 2005-03-11 03:29:11
|
Aloha, I know there is a nice util method for BeanUtils.instantiateClass() that wraps the exception that might be thrown. I'm working on the RequiredDependencyCheckingPostProcessor, and I'm looking for a util method that handles getting the value from a field (/not/ a property) and wrapping the exception. It appears that BeanWrapper works with getters, which I'm trying to avoid. Is there such a thing? I've got it all working now, but wanted to clean it up and use what Spring already has (since I know it has a lot of nice util methods). Also, I can't find an exception under PropertyAccessException for FieldAccessException, or some cousin of IllegalAccessException in the BeansException hierarchy. It would be a useful thing to have, along with the util method to get a field value. Tips? Mahalo! Seth -- <a href="http://www.picklematrix.net/foaf.rdf">Seth Ladd's FOAF</a> <a href="http://www.foaf-project.org/">What is FOAF?</a> |