enum « Bean « Spring Q&A





1. How assign bean's property an Enum value in Spring config file?    stackoverflow.com

I have a standalone enum type defined, something like this:

package my.pkg.types;

public enum MyEnumType {
    TYPE1,
    TYPE2
}
No I want to inject a value of that type ...

2. What is the easiest way to property edit enum values?    forum.springsource.org

What is the easiest way to property edit enum values? I'd like use a generic approach, and if possible, make it so I can map things like "My Word" to Type.MY_WORD ...