com.alee.managers.plugin
Class PluginsAdapter<T extends Plugin>

java.lang.Object
  extended by com.alee.managers.plugin.PluginsAdapter<T>
All Implemented Interfaces:
PluginsListener<T>

public class PluginsAdapter<T extends Plugin>
extends java.lang.Object
implements PluginsListener<T>

Special listener adapter for PluginManager events.

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

Constructor Summary
PluginsAdapter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginsAdapter

public PluginsAdapter()
Method Detail

pluginsCheckStarted

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

Specified by:
pluginsCheckStarted in interface PluginsListener<T extends Plugin>
Parameters:
directory - checked plugins directory path
recursive - whether plugins directory subfolders are checked recursively or not

pluginsCheckEnded

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

Specified by:
pluginsCheckEnded in interface PluginsListener<T extends Plugin>
Parameters:
directory - checked plugins directory path
recursive - whether plugins directory subfolders are checked recursively or not

pluginsDetected

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

Specified by:
pluginsDetected in interface PluginsListener<T extends Plugin>
Parameters:
plugins - recently detected plugins

pluginsInitialized

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

Specified by:
pluginsInitialized in interface PluginsListener<T extends Plugin>
Parameters:
plugins - recently initialized plugins