|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.Plugin
hudson.maven.PluginImpl
public class PluginImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from class hudson.Plugin |
---|
Plugin.DummyImpl |
Field Summary |
---|
Fields inherited from interface hudson.model.Saveable |
---|
NOOP |
Constructor Summary | |
---|---|
PluginImpl()
|
Method Summary | |
---|---|
static void |
init()
|
void |
start()
Called to allow plugins to initialize themselves. |
Methods inherited from class hudson.Plugin |
---|
configure, configure, doDynamic, getConfigXml, getWrapper, load, postInitialize, save, setServletContext, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginImpl()
Method Detail |
---|
public void start() throws Exception
Plugin
This method is called after Plugin.setServletContext(ServletContext)
is invoked.
You can also use Jenkins.getInstance()
to access the singleton hudson instance,
although the plugin start up happens relatively early in the initialization
stage and not all the data are loaded in Hudson.
If a plugin wants to run an initialization step after all plugins and extension points
are registered, a good place to do that is Plugin.postInitialize()
.
If a plugin wants to run an initialization step after all the jobs are loaded,
ItemListener.onLoaded()
is a good place.
start
in class Plugin
Exception
- any exception thrown by the plugin during the initialization will disable plugin.ExtensionPoint
,
Plugin.postInitialize()
@Initializer(after=PLUGINS_STARTED) public static void init()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |