(Oops, I posted again on this same topic.) You can have an Enum as an annotation attribute, the question is then what should be the default value?
Gary On Wed, May 28, 2014 at 8:33 AM, Matt Sicker <[email protected]> wrote: > Yeah, you'd use the defaultStringValue. It'll get converted via > EnglishEnums.valueOf(), so it's somewhat case-insensitive, too. > > > On 28 May 2014 06:40, Gary Gregory <[email protected]> wrote: > >> If I have a type converter for an enum, now do I specify a default value >> of that enum in a @PluginAttribute? >> >> Gary >> >> -- >> E-Mail: [email protected] | [email protected] >> Java Persistence with Hibernate, Second Edition >> <http://www.manning.com/bauer3/> >> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> >> Spring Batch in Action <http://www.manning.com/templier/> >> Blog: http://garygregory.wordpress.com >> Home: http://garygregory.com/ >> Tweet! http://twitter.com/GaryGregory >> > > > > -- > Matt Sicker <[email protected]> > -- E-Mail: [email protected] | [email protected] Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> Spring Batch in Action <http://www.manning.com/templier/> Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory
