mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-03 15:15:54 +00:00
added one more initialization hook.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17122 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
7a96b96a90
commit
ee2dcbd3a5
2 files changed
+22
-3
No files matched your search
@@ -105,17 +105,28 @@ public abstract class Plugin implements Saveable {
|
||||
*
|
||||
* <p>
|
||||
* If a plugin wants to run an initialization step after all plugins and extension points
|
||||
* are registered, a good place to do that is {@link ItemListener#onLoaded()}
|
||||
* are registered, a good place to do that is {@link #postInitialize()}.
|
||||
* If a plugin wants to run an initialization step after all the jobs are loaded,
|
||||
* {@link ItemListener#onLoaded()} is a good place.
|
||||
*
|
||||
* @throws Exception
|
||||
* any exception thrown by the plugin during the initialization will disable plugin.
|
||||
*
|
||||
* @since 1.42
|
||||
* @see ExtensionPoint
|
||||
* @see #postInitialize()
|
||||
*/
|
||||
public void start() throws Exception {
|
||||
}
|
||||
|
||||
/**
|
||||
* Called after {@link #start()} is called for all the plugins.
|
||||
*
|
||||
* @throws Exception
|
||||
* any exception thrown by the plugin during the initialization will disable plugin.
|
||||
*/
|
||||
public void postInitialize() throws Exception {}
|
||||
|
||||
/**
|
||||
* Called to orderly shut down Hudson.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user