Examples of PluginInfo


Examples of net.sourceforge.squirrel_sql.client.plugin.PluginInfo

   }

   @Test 
   public void testGetInstalledPlugins() {
     PluginInfo[] pluginInfos = new PluginInfo[2];
     PluginInfo mockPlugin1 = mockHelper.createMock(PluginInfo.class);
     PluginInfo mockPlugin2 = mockHelper.createMock(PluginInfo.class);
     EasyMock.expect(mockPlugin1.getInternalName()).andReturn("plugin1");
     EasyMock.expect(mockPlugin2.getInternalName()).andReturn("plugin2");
     pluginInfos[0] = mockPlugin1;
     pluginInfos[1] = mockPlugin2;
     expect(mockPluginManager.getPluginInformation()).andReturn(pluginInfos);
    
     mockHelper.replayAll();
View Full Code Here

Examples of org.apache.solr.core.PluginInfo

      //legacy handling <mergeScheduler>[classname]</mergeScheduler>
      //remove in Solr2.0
      log.warn("deprecated syntax : <mergeScheduler>[classname]</mergeScheduler>");
      Map<String,String> atrs = new HashMap<String, String>();
      atrs.put("class",str.trim());
      mergeSchedulerInfo = new PluginInfo("mergeScheduler",atrs,null,null);
    } else {
      mergeSchedulerInfo = getPluginInfo(prefix + "/mergeScheduler", solrConfig, def.mergeSchedulerInfo);
    }
    str =  solrConfig.get(prefix+"/mergePolicy/text()",null);
    if(str != null && str.trim().length() >0){
      //legacy handling  <mergePolicy>[classname]</mergePolicy>
      //remove in Solr2.0
      log.warn("deprecated syntax : <mergePolicy>[classname]</mergePolicy>");
      Map<String,String> atrs = new HashMap<String, String>();
      atrs.put("class",str.trim());
      mergePolicyInfo = new PluginInfo("mergePolicy",atrs,null,null);
    } else {
      mergePolicyInfo = getPluginInfo(prefix + "/mergePolicy", solrConfig, def.mergePolicyInfo);
    }
   
    Object luceneAutoCommit = solrConfig.get(prefix + "/luceneAutoCommit", null);
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.node.info.PluginInfo

        // first we load all the default plugins from the settings
        String[] defaultPluginsClasses = settings.getAsArray("plugin.types");
        for (String pluginClass : defaultPluginsClasses) {
            Plugin plugin = loadPlugin(pluginClass, settings);
            PluginInfo pluginInfo = new PluginInfo(plugin.name(), plugin.description(), hasSite(plugin.name()), true, PluginInfo.VERSION_NOT_AVAILABLE);
            if (logger.isTraceEnabled()) {
                logger.trace("plugin loaded from settings [{}]", pluginInfo);
            }
            tupleBuilder.add(new Tuple<>(pluginInfo, plugin));
        }
View Full Code Here

Examples of org.jamesii.core.plugins.PlugInInfo

  /**
   * Instantiates a new cache plug in finder.
   */
  public CachePlugInFinder() {
    super();
    info = new PlugInInfo();
    read();
  }
View Full Code Here

Examples of org.jboss.bpm.console.client.model.PluginInfo

      for(Class type : pluginInterfaces)
      {
        Object impl = PluginMgr.load(type);
        boolean isAvailable = (impl!=null);

        status.getPlugins().add(new PluginInfo(type.getName(), isAvailable));
      }
    }
    return status;
  }
View Full Code Here

Examples of org.sonatype.nexus.plugins.plugin.console.model.PluginInfo

    return result;
  }

  private PluginInfo buildPluginInfo(PluginIdentity plugin) {
    PluginInfo result = new PluginInfo();

    result.setStatus("ACTIVATED");
    result.setVersion(plugin.getCoordinates().getVersion());
// TODO: populate with OSGi info?
//    if (pluginResponse.getPluginDescriptor() != null) {
//      result.setName(pluginResponse.getPluginDescriptor().getPluginMetadata().getName());
//      result.setDescription(pluginResponse.getPluginDescriptor().getPluginMetadata().getDescription());
//      result.setScmVersion(pluginResponse.getPluginDescriptor().getPluginMetadata().getScmVersion());
//      result.setScmTimestamp(pluginResponse.getPluginDescriptor().getPluginMetadata().getScmTimestamp());
//      result.setSite(pluginResponse.getPluginDescriptor().getPluginMetadata().getPluginSite());
//    }
//    else {
      result.setName(plugin.getCoordinates().getGroupId() + ":"
          + plugin.getCoordinates().getArtifactId());
//    }

    Collection<DocumentationBundle> docs =
        docBundles.get(plugin.getCoordinates().getArtifactId());
    if (docs != null && !docs.isEmpty()) {
      for (DocumentationBundle bundle : docs) {
        // here, we (mis)use the documentation field, to store path segments only, the REST resource will create
        // proper URLs out this these.
        DocumentationLink link = new DocumentationLink();
        link.setLabel(bundle.getDescription());
        link.setUrl(bundle.getPluginId() + "/" + bundle.getPathPrefix());
        result.addDocumentation(link);
      }
    }

// TODO: log/diagnose OSGi issues?
//    if (!pluginResponse.isSuccessful()) {
View Full Code Here

Examples of org.syncany.operations.plugin.PluginInfo

    if (operationResult.getResultCode() == PluginResultCode.OK) {
      List<String[]> tableValues = new ArrayList<String[]>();
      tableValues.add(new String[] { "Id", "Name", "Local Version", "Type", "Remote Version" });

      for (ExtendedPluginInfo extPluginInfo : operationResult.getPluginList()) {
        PluginInfo pluginInfo = (extPluginInfo.isInstalled()) ? extPluginInfo.getLocalPluginInfo() : extPluginInfo.getRemotePluginInfo();

        String localVersionStr = (extPluginInfo.isInstalled()) ? extPluginInfo.getLocalPluginInfo().getPluginVersion() : "";
        String installedStr = extPluginInfo.isInstalled() ? (extPluginInfo.canUninstall() ? "User" : "Global") : "";
        String remoteVersionStr = (extPluginInfo.isRemoteAvailable()) ? extPluginInfo.getRemotePluginInfo().getPluginVersion() : "";

        tableValues.add(new String[] { pluginInfo.getPluginId(), pluginInfo.getPluginName(), localVersionStr, installedStr, remoteVersionStr });
      }

      printTable(tableValues, "No plugins found.");
    }
    else {
View Full Code Here

Examples of org.xmlBlaster.util.plugin.PluginInfo

   public final I_CallbackDriver getNewCbProtocolDriverInstance(String driverType) throws XmlBlasterException {
      return getPlugin(driverType, "1.0");
   }

   public PluginInfo getPluginInfo(String type, String version) throws XmlBlasterException {
      return new PluginInfo(glob, this, type, version);
   }
View Full Code Here

Examples of org.xmlBlaster.util.plugin.PluginInfo

    */
   public I_CallbackDriver getPlugin(String type, String version) throws XmlBlasterException {
      if (log.isLoggable(Level.FINER)) log.finer("Creating instance of " + createPluginPropertyKey(type, version));

      // We need a new instance every time! (no caching in base class)
      PluginInfo pluginInfo = new PluginInfo(glob, this, type, version);
      I_CallbackDriver driver = (I_CallbackDriver)super.instantiatePlugin(pluginInfo, false);
      return driver;
   }
View Full Code Here

Examples of org.xmlBlaster.util.plugin.PluginInfo

         glob.getProperty().set("topic.queue.persistent.tableNamePrefix", "TEST");

         String type = PLUGIN_TYPES[this.currImpl];
         StoragePluginManager pluginManager = this.glob.getStoragePluginManager();
         // Overwrite JDBC settings from xmlBlaster.properties
         PluginInfo pluginInfo = new PluginInfo(glob, pluginManager, "JDBC", "1.0");
         java.util.Properties prop = (java.util.Properties)pluginInfo.getParameters();
         prop.put("tableNamePrefix", "TEST");
         prop.put("entriesTableName", "_entries");
         this.glob.getProperty().set("QueuePlugin[JDBC][1.0]", pluginInfo.dumpPluginParameters());

         if (!"JDBC".equals(type))
            pluginInfo = new PluginInfo(glob, pluginManager, type, "1.0");

         MsgUnitStoreProperty storeProp = new MsgUnitStoreProperty(glob, "/node/test");
         StorageId queueId = new StorageId(glob, "msgUnitStore", "SomeMapId");

         this.currMap = pluginManager.getPlugin(pluginInfo, queueId, storeProp);
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.