Examples of IPlugin


Examples of com.godshawk.lib.interfaces.modularity.IPlugin

    }

    public void internalPluginLoad(Class<? extends IPlugin> pluginClass) {
        try {
            PluginMetadata metadata = generateMetadata(pluginClass);
            IPlugin plugin = pluginClass.getDeclaredConstructor(
                    PluginManager.class, File.class, File.class
            ).newInstance(
                    this, pluginDir, new File(
                            String.format("%s%s%s.%s",
                                    pluginDir.getAbsolutePath(),
                                    File.separator,
                                    metadata.getKeyValue(EnumPluginKeys.PLUGIN_ID.getValue()),
                                    configExtension
                            )
                    )
            );
            plugin.setMetadata(metadata);

            addObject(plugin);
        } catch (InstantiationException | IllegalAccessException | NoSuchMethodException
                | InvocationTargetException e) {
            e.printStackTrace();
View Full Code Here

Examples of com.hetty.plugin.IPlugin

  private void initPlugins() {
    logger.info("init plugins...........");
    List<Class<?>> pluginList = hettyConfig.getPluginClassList();
    try {
      for (Class<?> cls : pluginList) {
        IPlugin p;
        p = (IPlugin) cls.newInstance();
        p.start();
      }
    } catch (InstantiationException e) {
      logger.error("init plugin failed.");
      e.printStackTrace();
    } catch (IllegalAccessException e) {
View Full Code Here

Examples of interfaces.IPlugin

                Matcher matcher = urlPattern.matcher(url);
                if (matcher.find())
                {
                    //Load the corresponding pattern and download it !
                    IPlugin plugin = loader.getPlugin(pattern.pluginName);

                    //We found and loaded a plugin able to handle the link
                    found = true;

                    if (plugin != null)
                    {
                        //System.out.println(getThread() + "Using plugin " + pattern.pluginName);

                        List<String> urls = plugin.getLinks(url);
                        for (String url : urls)
                        {
                            download(url, localFolder, title, new ICallback() {
                                @Override
                                public void onDownloadFinished(File downloaded) {
View Full Code Here

Examples of interfaces.IPlugin

     * @param name the plugin name
     * @return the corresponding plugin (if loaded successfully before), or null
     */
    public IPlugin getPlugin(String name)
    {
        IPlugin result = null;

        Class<?> c = plugins.get(name);

        if (c != null)
        {
View Full Code Here

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

   {
      CursorChanger cursorChg = new CursorChanger(getApplication().getMainFrame());
      cursorChg.show();
      try
      {
         IPlugin plugin = _session.getApplication().getDummyAppPlugin();
         _session.rollback();
      }
      finally
      {
         cursorChg.restore();
View Full Code Here

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

     return result;
  }

  public static IPlugin getMockPlugin(EasyMockHelper mockHelper)
   {
      IPlugin mockPlugin = mockHelper.createMock(IPlugin.class);
      return mockPlugin;
   }
View Full Code Here

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

    _plugin = plugin;
  }

  public void actionPerformed(ActionEvent evt) {
    if (_session != null) {
      IPlugin plugin = _session.getApplication().getDummyAppPlugin();
      IObjectTreeAPI treeAPI = _session.getSessionInternalFrame().getObjectTreeAPI();
      final IDatabaseObjectInfo[] dbObjs = treeAPI.getSelectedDatabaseObjects();
           
      if (dbObjs.length > 0) {
                try {
View Full Code Here

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

    _plugin = plugin;
  }

  public void actionPerformed(ActionEvent evt) {
    if (_session != null) {
      IPlugin plugin = _session.getApplication().getDummyAppPlugin();
      IObjectTreeAPI treeAPI = _session.getSessionInternalFrame().getObjectTreeAPI();
      IDatabaseObjectInfo[] dbs = treeAPI.getSelectedDatabaseObjects();
      ObjectTreeNode[] nodes = treeAPI.getSelectedNodes();
      if (dbs.length > 0)
                new TruncateLogCommand(_session, _plugin, dbs).execute();
View Full Code Here

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

  public void actionPerformed(ActionEvent evt)
  {
    if (_session != null)
    {
      IPlugin plugin = _session.getApplication().getDummyAppPlugin();
      IObjectTreeAPI treeAPI = _session.getSessionInternalFrame().getObjectTreeAPI();
      IDatabaseObjectInfo[] dbs = treeAPI.getSelectedDatabaseObjects();
      ObjectTreeNode[] nodes = treeAPI.getSelectedNodes();
      if (dbs.length > 0)
      {
View Full Code Here

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

    _plugin = plugin;
  }

  public void actionPerformed(ActionEvent evt) {
    if (_session != null) {
      IPlugin plugin = _session.getApplication().getDummyAppPlugin();
      IObjectTreeAPI treeAPI = _session.getSessionInternalFrame().getObjectTreeAPI();
      IDatabaseObjectInfo[] dbs = treeAPI.getSelectedDatabaseObjects();
      ObjectTreeNode[] nodes = treeAPI.getSelectedNodes();
      if (dbs.length > 0)
                new ShrinkDatabaseCommand(_session, _plugin, dbs).execute();
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.