Package ro.fortsoft.pf4j

Examples of ro.fortsoft.pf4j.Version


    this.runtimeManager = runtimeManager;

    this.pf4j = new DefaultPluginManager(dir);

    try {
      Version systemVersion = Version.createVersion(Constants.getVersion());
      pf4j.setSystemVersion(systemVersion);
    } catch (Exception e) {
      logger.error(null, e);
    }
  }
View Full Code Here


    if (file == null || !file.exists()) {
      logger.error("Failed to download plugin {}", url);
      return false;
    }

    Version oldVersion = pf4j.getPlugin(pluginId).getDescriptor().getVersion();
    if (removePlugin(pluginId, false)) {
      String newPluginId = pf4j.loadPlugin(file);
      if (StringUtils.isEmpty(newPluginId)) {
        logger.error("Failed to load plugin {}", file);
        return false;
View Full Code Here

      }
    }

    for (PluginWrapper pw : pf4j.getPlugins()) {
      String id = pw.getDescriptor().getPluginId();
      Version pv = pw.getDescriptor().getVersion();
      PluginRegistration reg = map.get(id);
      if (reg != null) {
        reg.installedRelease = pv.toString();
      }
    }
    return list;
  }
View Full Code Here

TOP

Related Classes of ro.fortsoft.pf4j.Version

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.