コード例 #1
0
  public static Service createFactory() {

    // workaround for GSON issue https://github.com/google/gson/issues/764
    // We serialize the complex type once, on service creation, to avoid possible GSON race
    ResourceGroupState st = new ResourceGroupState();
    st.query = QueryTask.Query.Builder.create().addFieldClause("one", "one").build();
    Utils.toJson(st);
    return FactoryService.createIdempotent(ResourceGroupService.class);
  }
コード例 #2
0
 public static FactoryService createFactory() {
   return FactoryService.createIdempotent(ResourceAggregateMetricService.class);
 }