logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Sicker <boa...@gmail.com>
Subject Re: Type converters and enum default values
Date Wed, 28 May 2014 12:33:45 GMT
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 <garydgregory@gmail.com> 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: garydgregory@gmail.com | ggregory@apache.org
> 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 <boards@gmail.com>

Mime
View raw message