Package net.kuujo.vertigo.platform

Examples of net.kuujo.vertigo.platform.ModuleIdentifier


      @Override
      public Collection<ModuleInfo> perform() {
        List<File> modDirs = locateModules();
        Collection<ModuleInfo> modInfo = new ArrayList<>();
        for (File modDir : modDirs) {
          ModuleIdentifier modID = new ModuleIdentifier(modDir.getName());
          File modJson = new File(modDir, MOD_JSON_FILE);
          try {
            modInfo.add(loadModuleInfo(modID, modJson));
          } catch (Exception e) {
            continue;
View Full Code Here


  public PlatformManager getModuleInfo(final String moduleName, final Handler<AsyncResult<ModuleInfo>> resultHandler) {
    Args.checkNotNull(moduleName, "module name cannot be null");
    context.execute(new Action<ModuleInfo>() {
      @Override
      public ModuleInfo perform() {
        ModuleIdentifier modID = new ModuleIdentifier(moduleName);
        File modDir = locateModule(modID);
        if (modDir != null) {
          File modJson = new File(modDir, MOD_JSON_FILE);
          return loadModuleInfo(modID, modJson);
        } else {
View Full Code Here

  public synchronized PlatformManager zipModule(final String moduleName, final Handler<AsyncResult<String>> doneHandler) {
    Args.checkNotNull(moduleName, "module name cannot be null");
    context.execute(new Action<String>() {
      @Override
      public String perform() {
        File file = zipModule(new ModuleIdentifier(moduleName));
        return file.getAbsolutePath();
      }
    }, doneHandler);
    return this;
  }
View Full Code Here

  public PlatformManager uninstallModule(final String moduleName, final Handler<AsyncResult<Void>> doneHandler) {
    Args.checkNotNull(moduleName, "module name cannot be null");
    context.execute(new Action<Void>() {
      @Override
      public Void perform() {
        uninstallModule(new ModuleIdentifier(moduleName));
        return null;
      }
    }, doneHandler);
    return this;
  }
View Full Code Here

    for (File file : files) {
      if (file.isDirectory()) {
        // Check to determine whether the directory is a valid module directory.
        boolean isValid = true;
        try {
          new ModuleIdentifier(file.getName());
        } catch (Exception e) {
          isValid = false;
        }

        // If the directory is a valid module name then check for a mod.json file.
View Full Code Here

      }

      for (String moduleName : mods) {
        File internalModDir = new File(internalModsDir, moduleName);
        if (!internalModDir.exists()) {
          ModuleIdentifier childModID = new ModuleIdentifier(moduleName);
          File includeModDir = locateModule(childModID);
          if (includeModDir != null) {
            vertx.fileSystem().copySync(includeModDir.getAbsolutePath(), internalModDir.getAbsolutePath(), true);
            pullInDependencies(childModID, internalModDir);
          }
View Full Code Here

TOP

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

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.