Package net.kuujo.vertigo.platform

Examples of net.kuujo.vertigo.platform.ModuleInfo


  /**
   * Loads configuration information for a module from mod.json.
   */
  private ModuleInfo loadModuleInfo(ModuleIdentifier modID, File modJsonFile) {
    return new ModuleInfo(modID, new ModuleFields(loadModuleConfig(modID, modJsonFile)));
  }
View Full Code Here


   * Pulls in all dependencies for a module.
   */
  private void pullInDependencies(ModuleIdentifier modID, File modDir) {
    // Load the module configuration file.
    File modJsonFile = new File(modDir, MOD_JSON_FILE);
    ModuleInfo info = loadModuleInfo(modID, modJsonFile);

    // Pull in all dependencies according to the "includes" and "deploys" fields.
    ModuleFields fields = info.fields();
    List<String> mods = new ArrayList<>();

    // Add "includes" modules.
    String sincludes = fields.getIncludes();
    if (sincludes != null) {
View Full Code Here

      @Override
      public void handle(AsyncResult<ModuleInfo> result) {
        if (result.failed()) {
          assertTrue(result.cause().getMessage(), result.succeeded());
        } else {
          ModuleInfo info = result.result();
          assertEquals("net.kuujo~test-mod-1~1.0", info.id().toString());
          assertEquals("app.js", info.fields().getMain());
          assertEquals("net.kuujo~test-include-1~1.0", info.fields().getIncludes());
          assertEquals("net.kuujo~test-include-2~1.0", info.fields().getDeploys());
          assertEquals("in", info.fields().getInPorts().get(0));
          assertEquals("out", info.fields().getOutPorts().get(0));
          testComplete();
        }
      }
    });
  }
View Full Code Here

TOP

Related Classes of net.kuujo.vertigo.platform.ModuleInfo

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.