From daniel.spicar at trialox.org Fri Sep 16 15:49:40 2011 From: daniel.spicar at trialox.org (Daniel Spicar) Date: Fri, 16 Sep 2011 15:49:40 +0200 Subject: [Dev] New ServicePropertyUtil in CMS Utils Message-ID: Hi, I added a new utility class to the CMS Utils project. ServicePropertyUtil contains some methods I have been using in my code for a while to read read service properties and throwing meaningful IllegalArgumentExceptions when they are not set correctly. Additionally it allows to restrict the interval of acceptable numeric values. The util requires, that the type of the service properties is correctly used in the @Property annotation. That means for integer values, the @Property annotation can not use value="5", but instead has to use intValue=5. The same principle holds for other types like float, boolean, Classes, etc. Just wanted to give a heads up for anyone that would like to use or improve the util. Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: