Interface JAlbumPlugin
- All Known Implementing Classes:
JWebPageUI
public interface JAlbumPlugin
JAlbum plugin interface
On start up, jAlbum scans class files ending in *Plugin inside the
"plugins" and "ext" directory (jar files)
If found classes also implement this interface, an instance of that class
is created. The instantiation is performed early during start up, before the
JAlbumFrame and AlbumBean objects are created.
When all critical JAlbum objects are created, jAlbum calls init() on all
instantiated plugins.
- Since:
- 8.1.6
-
Method Summary
Modifier and TypeMethodDescriptionvoidinit(PluginContext context) Allow a plugin to plug itself into the jAlbum framework.default booleanonExit()Called when jAlbum is about to exit.
-
Method Details
-
init
Allow a plugin to plug itself into the jAlbum framework. Called when all critical JAlbum objects are created, but before the window is opened.- Parameters:
context- allows you to plug yourself into the jAlbum UI.
-
onExit
default boolean onExit()Called when jAlbum is about to exit. Allows for cleanup- Returns:
- true if ok for jAlbum process to exit. false if the jAlbum process is to be kept running
-