Search in sources :

Example 1 with PluginLoader

use of com.google.security.zynamics.binnavi.standardplugins.PluginLoader in project binnavi by google.

the class PluginInterface method reloadPlugins.

/**
   * Reloads all plugins.
   */
public void reloadPlugins() {
    registry.getNative().unloadAll();
    NaviLogger.info("Loading built-in plugins...");
    final Collection<IPlugin<IPluginInterface>> plugins = new PluginLoader().getPlugins();
    for (final IPlugin<IPluginInterface> plugin : plugins) {
        registry.addPlugin(plugin);
    }
    CPluginLoader.loadPlugins(mainWindow.getFrame(), this, registry.getNative(), startPath, ConfigManager.instance());
    for (final IPluginInterfaceListener listener : listeners) {
        try {
            listener.loadedPlugins();
        } catch (final Exception exception) {
            CUtilityFunctions.logException(exception);
        }
    }
}
Also used : IPluginInterface(com.google.security.zynamics.binnavi.api2.IPluginInterface) PluginLoader(com.google.security.zynamics.binnavi.standardplugins.PluginLoader) CPluginLoader(com.google.security.zynamics.binnavi.Startup.CPluginLoader) IPlugin(com.google.security.zynamics.binnavi.api2.plugins.IPlugin)

Aggregations

CPluginLoader (com.google.security.zynamics.binnavi.Startup.CPluginLoader)1 IPluginInterface (com.google.security.zynamics.binnavi.api2.IPluginInterface)1 IPlugin (com.google.security.zynamics.binnavi.api2.plugins.IPlugin)1 PluginLoader (com.google.security.zynamics.binnavi.standardplugins.PluginLoader)1