Recently, I hit a very perplexing error while trying to clean up my spring configs. The exception was being thrown from deep within a third party library and was basically an obfuscated NPE.
What I would like to be able to do is configure spring to require a specific field on this class as being required, but I do not want to build a custom version of the library.
An obvious solution would be to subclass and mark the setter there, but out of curiosity I was wondering if there were an easy way to do this in spring without having to do the class juggling.
Java 6u10, Spring 2.5.