org.scijava.plugin
Class DefaultPluginFinder
java.lang.Object
org.scijava.plugin.DefaultPluginFinder
- All Implemented Interfaces:
- PluginFinder
public class DefaultPluginFinder
- extends Object
- implements PluginFinder
Default SciJava plugin discovery mechanism.
It works by scanning the classpath for Plugin
annotations
previously indexed by scijava-common itself.
- Author:
- Curtis Rueden
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPluginFinder
public DefaultPluginFinder()
DefaultPluginFinder
public DefaultPluginFinder(ClassLoader classLoader)
findPlugins
public HashMap<String,Throwable> findPlugins(List<PluginInfo<?>> plugins)
- Description copied from interface:
PluginFinder
- Populates the given list with all available SciJava plugins.
- Specified by:
findPlugins
in interface PluginFinder
- Returns:
- A table of exceptions which occurred during plugin discovery. Keys
correspond to plugin name in some fashion (e.g., a class name),
while values correspond to the exception which occurred when
attempting to create the associated
PluginInfo
object.
Copyright © 2009–2015 SciJava. All rights reserved.