Esempio n. 1
0
 protected Builder(Class<?> api, Class<?> asyncApi) {
   super(api, asyncApi);
   id("chef")
       .name("OpsCode Chef Api")
       .identityName("User")
       .credentialName("Certificate")
       .version(ChefAsyncApi.VERSION)
       .documentation(URI.create("http://wiki.opscode.com/display/chef/Server+API"))
       .defaultEndpoint("http://localhost:4000")
       .defaultProperties(ChefApiMetadata.defaultProperties())
       .context(typeToken(ChefContext.class))
       .defaultModules(
           ImmutableSet.<Class<? extends Module>>of(
               ChefRestClientModule.class, ChefParserModule.class, JMXOhaiModule.class));
 }
 public static Properties defaultProperties() {
   Properties properties = ChefApiMetadata.defaultProperties();
   return properties;
 }