What is everyone using for validating incoming requests? Hibernate Validator's annotations would be nice but there doesn't seem to be a way to extend the generated classes, annotate them, and force thrift to instantiate those instead is there?
There's also programmatic constraint declaration, but I dislike that I have to name fields by string. Then there's things like Guava's Preconditions, but that seems a bit too low level. Lastly there's things like assertj or hamcrest, but these are made with testing in mind and tend to allocate at least one object per assertion, which isn't ideal. What approaches have you had success with?
