@NotThreadSafe public class PluginLoader extends Object
| Constructor and Description |
|---|
PluginLoader() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
doesImplement(Class<?> theClass,
Class<?> theInterface)
Checks if a class implements given interface.
|
List<URL> |
findDependencies(File pluginFile) |
List<Class<Plugin>> |
loadPlugins(String password,
File... pluginFiles)
Loads emuStudio plugins.
|
public List<Class<Plugin>> loadPlugins(String password, File... pluginFiles) throws InvalidPasswordException, IOException
password - emuStudio password.pluginFiles - plugin files.InvalidPasswordException - if given password is invalidIOException - if other error happenspublic List<URL> findDependencies(File pluginFile) throws IOException
IOExceptionpublic static boolean doesImplement(Class<?> theClass, Class<?> theInterface)
theClass - class that will be testedtheInterface - interface that the class should implementCopyright © 2017. All rights reserved.