Package soot.plugins.internal
Class PluginLoader
- java.lang.Object
-
- soot.plugins.internal.PluginLoader
-
public class PluginLoader extends Object
Class for loading xml-based plugin configuration files.- Author:
- Bernhard J. Berger
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanload(String file)Loads the plugin configuration filefileand registers the plugins.static voidloadPlugins(Plugins plugins)Load all plugins.static voidsetClassLoadingStrategy(ClassLoadingStrategy strategy)Changes the class loading strategy used by Soot.
-
-
-
Method Detail
-
load
public static boolean load(String file)
Loads the plugin configuration filefileand registers the plugins.- Parameters:
file- the plugin configuration file.- Returns:
trueon 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.
-
-