Class 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
    • Constructor Detail

      • DefaultPluginFinder

        public DefaultPluginFinder()
      • DefaultPluginFinder

        public DefaultPluginFinder​(ClassLoader classLoader)
    • Method Detail

      • 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.