hudson.maven
Class PluginImpl

java.lang.Object
  extended by hudson.Plugin
      extended by hudson.maven.PluginImpl
All Implemented Interfaces:
Saveable

public class PluginImpl
extends Plugin

Author:
huybrechts, Dominik Bartholdi (imod)

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

PluginImpl

public PluginImpl()
Method Detail

start

public void start()
           throws Exception
Description copied from class: Plugin
Called to allow plugins to initialize themselves.

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.

Overrides:
start in class Plugin
Throws:
Exception - any exception thrown by the plugin during the initialization will disable plugin.
See Also:
ExtensionPoint, Plugin.postInitialize()

init

@Initializer(after=PLUGINS_STARTED)
public static void init()
Since:
1.491


Copyright © 2004-2013. All Rights Reserved.