Package com.google.greaze.server.inject

Examples of com.google.greaze.server.inject.GreazeServerModule


  }

  private static <R extends RestResource<R>, Q extends ResourceQueryParams> Injector buildInjector(
      ResourceQuery<R, Q> queryHandler, GsonBuilder serverGsonBuilder,
      ResourceUrlPaths urlPaths, CallPath queryCallPath, GreazeFilterChain filters) {
    GreazeServerModule gsm = new GreazeServerModule(
        urlPaths.getServletPath(), ImmutableList.of(queryCallPath), urlPaths.getResourcePrefix());
    Module module = new RestModuleBuilder()
      .setResourceQueryHandler(queryHandler)
      .setGreazeFilterChain(filters)
      .setServerGsonBuilder(serverGsonBuilder)
View Full Code Here


  }

  private static Injector buildInjector(ResponseBuilderMap responseBuilders,
      RestCallSpecMap restCallSpecMap, GsonBuilder serverGson, Collection<CallPath> servicePaths,
      ResourceUrlPaths urlPaths, GreazeFilterChain filters) {
    GreazeServerModule gsm = new GreazeServerModule(
        urlPaths.getServletPath(), servicePaths, urlPaths.getResourcePrefix());
    Module module = new RestModuleBuilder()
      .setResponseBuilderMap(responseBuilders)
      .setRestCallSpecMap(restCallSpecMap)
      .setServerGsonBuilder(serverGson)
View Full Code Here

    Collection<CallPath> allServicePaths = Lists.newArrayList();
    allServicePaths.addAll(ServicePaths.allServicePaths());
    allServicePaths.add(SampleJsonService.PLACE_ORDER.getPath());
    return Guice.createInjector(
        new GreazeExampleServerModule(),
        new GreazeServerModule("/greazeexampleservice", allServicePaths,
            SampleJsonService.RESOURCE_PREFIX));
  }
View Full Code Here

TOP

Related Classes of com.google.greaze.server.inject.GreazeServerModule

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.