Package org.jrest4guice.rest.commons.converter

Examples of org.jrest4guice.rest.commons.converter.DatePatternConverter


   *            需要动态扫瞄的资源路径
   * @return
   */
  public static PersistenceGuiceContext useJRest(String... scanPaths) {
    //注册缺省的日期转换器(用于BeanUtilsBean)
    new DatePatternConverter().addDefaultDateConverter();
    //打开JRest的支持
    PersistenceGuiceContext.getInstance().addModuleProvider(
        new JRest4GuiceModuleProvider(scanPaths)).addModuleProvider(
        new JndiGuiceModuleProvider(scanPaths));
    return PersistenceGuiceContext.getInstance();
View Full Code Here

TOP

Related Classes of org.jrest4guice.rest.commons.converter.DatePatternConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.