There is no direct way of storing into list for values. But as alternative to tokenizer you can simplify like this
String[] values = value.split(",")
Question
Is it possible to have a variable that is string list via the Context.xml file? For example, I'm currently doing this in my context.xml file:
<Environment name="actiontypes" value="INSERT,DELETE,UPDATE,INITIAL" type="java.lang.String" />
I read that into a tokenizer and break it down by comma delimited. Anyway I could just store this straight as an array or list?
Solution
There is no direct way of storing into list for values. But as alternative to tokenizer you can simplify like this
String[] values = value.split(",")