Examples of OfficialPluginDescription


Examples of freenet.pluginmanager.OfficialPlugins.OfficialPluginDescription

    }
  }
  // try to guess around...
  public PluginInfoWrapper startPluginAuto(final String pluginname, boolean store) {

    OfficialPluginDescription desc;
    if((desc = isOfficialPlugin(pluginname)) != null) {
      return startPluginOfficial(pluginname, store, desc, false, false);
    }

    try {
View Full Code Here

Examples of freenet.pluginmanager.OfficialPlugins.OfficialPluginDescription

          // We already do similar things elsewhere.

          // Ugh, this is just as messy ... ideas???? Maybe we need to have OS
          // detection and use grep/sed on unix and find on windows???

          OfficialPluginDescription desc = officialPlugins.get(name);

          long minVer = desc.minimumVersion;
          long ver = -1;

          if(minVer != -1) {
View Full Code Here

Examples of freenet.pluginmanager.OfficialPlugins.OfficialPluginDescription

    super(client, node, desperate);
  }

  @Override
  public FreenetURI checkSource(String source) throws PluginNotFoundException {
    OfficialPluginDescription desc = node.getPluginManager().getOfficialPlugin(source);
    if(desc == null) throw new PluginNotFoundException("Not in the official plugins list: "+source);
    if(desc.uri != null)
      return desc.uri;
    else {
      return node.nodeUpdater.getURI().setDocName(source).setSuggestedEdition(desc.minimumVersion).sskForUSK();
View Full Code Here

Examples of freenet.pluginmanager.OfficialPlugins.OfficialPluginDescription

   *            plugin. E.g. "Library" (no .jar)
   */
  public void startPluginUpdater(String plugName) {
    if (logMINOR)
      Logger.minor(this, "Starting plugin updater for " + plugName);
    OfficialPluginDescription plugin = node.getPluginManager().getOfficialPlugin(plugName);
    if (plugin != null)
      startPluginUpdater(plugin);
    else
    // Most likely not an official plugin
    if (logMINOR)
View Full Code Here

Examples of freenet.pluginmanager.OfficialPlugins.OfficialPluginDescription

    updater.start();
    System.out.println("Started plugin update fetcher for " + name);
  }

  public void stopPluginUpdater(String plugName) {
    OfficialPluginDescription plugin = node.getPluginManager().getOfficialPlugin(plugName);
    if (plugin == null)
      return; // Not an official plugin
    PluginJarUpdater updater = null;
    synchronized (this) {
      if (pluginUpdaters == null) {
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.