JavaScud | Forum | JIRA | Blog |
  Dashboard > SpringSide > Home > SS20Utils
  SpringSide Log In View a printable version of the current page.  
  SS20Utils
Added by calvin, last edited by calvin on Oct 15, 2006  (view change)
Labels: 
(None)

1.Jakarta StringUtils

使用Jakarta-Commons-Language中的StringUtils类,基本上能满足任何要求

2.Jakarta BeanUtils

使用Jakarta-Commons-Beantuils,能够获得便捷的反射函数封装及对嵌套属性、map、array型属性的读取。

其中,BeanUtils 将Bean属性读取转化为String,而PropertyUtils将按原来的属性原来的类型读取。

3.Jakarta CollectionUtils

使用Jakarta-Commons-Collections,里面有非常多的Utils方法,在做任何冗长的集合操作之前都应该先看看有没有相应的Utils.

另外,Collections 补充了JDK所没有的Nullable Comparetor, Chain Comparetor等重要部分。

4.Jakarta Configuration

 使用Jakarta-Commons-Configuration作为统一的Configuration接口,支持Properties, XML, DataBase

 可以一次读取多个properties文件

 可以做getStringList(), getInt()这样的自动转换

 可以支持ant那样的变量 my.color=$

 可以用XML Path读取XML文件里的变量。

5.Spring Assert

使用Spring的Assert类,将对函数输入参数进行各种形式的校验,如集合非空,字符串含字符等,否则将抛出参数异常错误。

Site running on a free Atlassian Confluence Open Source Project License granted to WebWork China. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.3 Build:#808 May 29, 2007) - Bug/feature request - Contact Administrators