Package org.jrest4guice.rest

Examples of org.jrest4guice.rest.JRest4GuiceModuleProvider


  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.JRest4GuiceModuleProvider

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.