At the moment I am developing an annotation-based binding-framework for Java Swing that uses JGoodies Binding under the hood. Unfortunately I am stuck with an annotation for a J
I was trying to solve this exact same problem, and as far as I know, it can not be done. It's a real bummer.
In my case, I wanted to specify @Version annotation, where any enumeration can be used, and enum values can be compared by ordinal (to find ordering of versions). Looks like I need to do what some other frameworks (like Guice I think) do and use doubles instead; bit ugly, but works ok for >= and <= checks.