Class PluginLoader


  • public class PluginLoader
    extends Object
    Class for loading xml-based plugin configuration files.
    Author:
    Bernhard J. Berger
    • Method Detail

      • load

        public static boolean load​(String file)
        Loads the plugin configuration file file and registers the plugins.
        Parameters:
        file - the plugin configuration file.
        Returns:
        true on success.
      • loadPlugins

        public static void loadPlugins​(Plugins plugins)
                                throws RuntimeException
        Load all plugins. Can be called by a custom main function.
        Parameters:
        plugins - the plugins to load.
        Throws:
        RuntimeException - if an error occurs during loading.
      • setClassLoadingStrategy

        public static void setClassLoadingStrategy​(ClassLoadingStrategy strategy)
        Changes the class loading strategy used by Soot.
        Parameters:
        strategy - The new class loading strategy to use.