Examples of ChefParserModule


Examples of org.jclouds.chef.config.ChefParserModule

      Injector injector = Guice.createInjector(new AbstractModule() {
         @Override
         protected void configure() {
            bind(String.class).annotatedWith(ApiVersion.class).toInstance("0.9.8");
         }
      }, new ChefParserModule(), new GsonModule());

      ParseCookbookVersionsCheckingChefVersion parser = injector
            .getInstance(ParseCookbookVersionsCheckingChefVersion.class);
      assertTrue(parser.parser instanceof ParseCookbookVersionsV09FromJson);
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.