I've got a (String, obviously) property expressed in minutes that I want to convert to an int before I do some arithmetic and inject it into my Spring bean. Right now I have this SpEL expression:
#{T(java.lang.Integer).parseInt(myProperties['MIN_TIME']) * 60 * 1000}
where myProperties is a simple java.util.Properties bean.
Not that I'm particularly annoyed by this expression, but nevertheless: does the SpEL have a prettier, built-in way to parse strings into numeric values?
Thanks!