Add support for string to Enum conversion
-----------------------------------------
Key: JBMICROCONT-110
URL:
http://jira.jboss.com/jira/browse/JBMICROCONT-110
Project: JBoss MicroContainer
Issue Type: Task
Components: Configurator
Reporter: Scott M Stark
Assigned To: Scott M Stark
Fix For: JBossMC_2_0_0 Beta
The ValueConvertor.convertValue utility method needs to be updated to support conversion
of string to Enum. This is a simple change:
// First see if this is an Enum
if (clazz.isEnum())
{
Class<? extends Enum> eclazz = (Class<? extends Enum>) clazz;
return Enum.valueOf(eclazz, value.toString());
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira