com.mtvi.plateng.hudson.ldap
Class PluginImpl
java.lang.Object
hudson.Plugin
com.mtvi.plateng.hudson.ldap.PluginImpl
- All Implemented Interfaces:
- hudson.model.Saveable
public class PluginImpl
- extends hudson.Plugin
Entry point of for the LDAP Email plugin. Loads configuration from
com.mtvi.plateng.hudson.ldap.LdapMailAddressResolver.xml and adds an instance
of LdapMailAddressResolver to the MailAddressResolver list.
- Author:
- justinedelson
| Nested classes/interfaces inherited from class hudson.Plugin |
hudson.Plugin.DummyImpl |
| Fields inherited from interface hudson.model.Saveable |
NOOP |
|
Method Summary |
void |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
|
protected hudson.XmlFile |
getConfigXml()
|
protected Configuration |
loadConfiguration()
Loads confiugration file from
com.mtvi.plateng.hudson.ldap.LdapMailAddressResolver.xml. |
void |
start()
Plugin lifecycle method. |
| Methods inherited from class hudson.Plugin |
configure, doDynamic, load, postInitialize, save, setServletContext, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
config
public Configuration config
PluginImpl
public PluginImpl()
start
public void start()
throws java.lang.Exception
- Plugin lifecycle method. Loads configuration and adds configured instance
of LdapMailAddressResolver to MailAddressResolver list.
- Overrides:
start in class hudson.Plugin
- Throws:
java.lang.Exception - if something goes wrong- See Also:
Plugin.start()
loadConfiguration
protected Configuration loadConfiguration()
throws java.io.IOException
- Loads confiugration file from
com.mtvi.plateng.hudson.ldap.LdapMailAddressResolver.xml.
- Returns:
- a Configuration object, populated from the file, if it exists
- Throws:
java.io.IOException - if the file can't be read.
configure
public void configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws java.io.IOException
- Overrides:
configure in class hudson.Plugin
- Throws:
java.io.IOException
getConfigXml
protected hudson.XmlFile getConfigXml()
- Overrides:
getConfigXml in class hudson.Plugin
Copyright © 2004-2011. All Rights Reserved.