-
Sep 24th, 2008, 01:47 AM
#1
Controlling Annotation Parameter
class Bean
{
@Length(max=5)
String value;
}
Is there a way to inject a max value from spring context? Ie. I'd like to avoid hard coding max=5. This is useful in case of library development and such.
Thanks,
-
Sep 24th, 2008, 01:58 AM
#2
You can create you own BeanPostProcessor that is able to process your custom annotation.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules