com.alee.managers.plugin
Interface PluginsListener<T extends Plugin>

All Known Implementing Classes:
PluginsAdapter

public interface PluginsListener<T extends Plugin>

Special listener for PluginManager events.

Author:
Mikle Garin
See Also:
How to use PluginManager, PluginManager

Method Summary
 void pluginsCheckEnded(java.lang.String directory, boolean recursive)
          Called when plugins check finishes.
 void pluginsCheckStarted(java.lang.String directory, boolean recursive)
          Called when plugins check starts.
 void pluginsDetected(java.util.List<DetectedPlugin<T>> plugins)
          Called when new portion of plugins have been detected.
 void pluginsInitialized(java.util.List<T> plugins)
          Called when new portion of plugins have been successfully initialized.
 

Method Detail

pluginsCheckStarted

void pluginsCheckStarted(java.lang.String directory,
                         boolean recursive)
Called when plugins check starts.

Parameters:
directory - checked plugins directory path
recursive - whether plugins directory subfolders are checked recursively or not

pluginsCheckEnded

void pluginsCheckEnded(java.lang.String directory,
                       boolean recursive)
Called when plugins check finishes.

Parameters:
directory - checked plugins directory path
recursive - whether plugins directory subfolders are checked recursively or not

pluginsDetected

void pluginsDetected(java.util.List<DetectedPlugin<T>> plugins)
Called when new portion of plugins have been detected. Be aware that this list does not provide all detected plugins - complete detected plugins list can be retrieved from PluginManager.

Parameters:
plugins - recently detected plugins

pluginsInitialized

void pluginsInitialized(java.util.List<T> plugins)
Called when new portion of plugins have been successfully initialized. Be aware that this list does not provide all initialized plugins - complete plugins list can be retrieved from PluginManager. This also can be called without pre-call of plugin check and detection methods if plugins are registered programmatically.

Parameters:
plugins - recently initialized plugins