Class AbstractPreloadedPluginScanner

  • All Implemented Interfaces:
    PluginContentScanner

    public abstract class AbstractPreloadedPluginScanner
    extends Object
    implements PluginContentScanner
    Base plugin scanner for a set of pre-loaded classes.

    Utility base class for simplifying the development of Server plugin scanner based on a set of externally pre-loaded classes.

    Extending this class you can implement very easily a PluginContentScanner from a set of pre-loaded Java Classes and an API Type. The convention used by this class is: - there is at most one Guice module per Gerrit module type (SysModule, HttpModule, SshModule) - plugin is set to be restartable in Gerrit Plugin MANIFEST - only Export and Listen annotated classes can be self-discovered