org.hudsonci.rest.plugin
Class RestPlugin

java.lang.Object
  extended by hudson.Plugin
      extended by org.hudsonci.rest.plugin.RestPlugin
All Implemented Interfaces:
Saveable

@Named
@Singleton
public class RestPlugin
extends Plugin

Hudson REST plugin.

Since:
2.1.0
Author:
Jason Dillon

Nested Class Summary
static class RestPlugin.ProviderEnabler
           
 
Nested classes/interfaces inherited from class hudson.Plugin
Plugin.DummyImpl
 
Field Summary
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
RestPlugin(List<ApiProvider> providers)
           
 
Method Summary
 void configure(org.kohsuke.stapler.StaplerRequest request, net.sf.json.JSONObject data)
           
 void enable()
          Enable or disable providers based on enabled flag.
 boolean isEnabled()
           
 void postInitialize()
           
 void setEnabled(boolean enabled)
           
 void start()
           
 void stop()
           
 
Methods inherited from class hudson.Plugin
configure, doDynamic, getConfigXml, load, save, setServletContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestPlugin

@Inject
public RestPlugin(List<ApiProvider> providers)
Method Detail

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

enable

public void enable()
Enable or disable providers based on enabled flag.


start

public void start()
           throws Exception
Overrides:
start in class Plugin
Throws:
Exception

postInitialize

public void postInitialize()
                    throws Exception
Overrides:
postInitialize in class Plugin
Throws:
Exception

stop

public void stop()
          throws Exception
Overrides:
stop in class Plugin
Throws:
Exception

configure

public void configure(org.kohsuke.stapler.StaplerRequest request,
                      net.sf.json.JSONObject data)
               throws IOException,
                      javax.servlet.ServletException,
                      Descriptor.FormException
Overrides:
configure in class Plugin
Throws:
IOException
javax.servlet.ServletException
Descriptor.FormException


Copyright © 2004-2011 Hudson. All Rights Reserved.