hudson.plugins.findbugs.util
Class PluginDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<T>
      extended by hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
          extended by hudson.plugins.findbugs.util.PluginDescriptor
Direct Known Subclasses:
FindBugsDescriptor

public abstract class PluginDescriptor
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>

Base class for a Hudson plug/in descriptor.


Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Constructor Summary
PluginDescriptor(java.lang.Class<? extends hudson.tasks.Publisher> clazz)
          Creates a new instance of PluginDescriptor.
 
Method Summary
 void doCheckPattern(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Performs on-the-fly validation on the file mask.
 void doCheckThreshold(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Performs on-the-fly validation on the bugs threshold.
 java.lang.String getHelpFile()
          
protected abstract  java.lang.String getPluginName()
          Returns the name of the plug-in.
 boolean isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> jobType)
          
 
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
 
Methods inherited from class hudson.model.Descriptor
configure, configure, convert, find, getConfigPage, getDisplayName, getGlobalConfigPage, getViewPage, isInstance, load, newInstance, newInstance, newInstancesFromHeteroList, save, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginDescriptor

public PluginDescriptor(java.lang.Class<? extends hudson.tasks.Publisher> clazz)
Creates a new instance of PluginDescriptor.

Parameters:
clazz - the type of the publisher
Method Detail

getHelpFile

public final java.lang.String getHelpFile()

Overrides:
getHelpFile in class hudson.model.Descriptor<hudson.tasks.Publisher>

getPluginName

protected abstract java.lang.String getPluginName()
Returns the name of the plug-in.

Returns:
the name of the plug-in

doCheckPattern

public final void doCheckPattern(org.kohsuke.stapler.StaplerRequest request,
                                 org.kohsuke.stapler.StaplerResponse response)
                          throws java.io.IOException,
                                 javax.servlet.ServletException
Performs on-the-fly validation on the file mask.

Parameters:
request - Stapler request
response - Stapler response
Throws:
java.io.IOException
javax.servlet.ServletException

doCheckThreshold

public final void doCheckThreshold(org.kohsuke.stapler.StaplerRequest request,
                                   org.kohsuke.stapler.StaplerResponse response)
                            throws java.io.IOException,
                                   javax.servlet.ServletException
Performs on-the-fly validation on the bugs threshold.

Parameters:
request - Stapler request
response - Stapler response
Throws:
java.io.IOException
javax.servlet.ServletException

isApplicable

public final boolean isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> jobType)

Specified by:
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>


Copyright © 2008. All Rights Reserved.