Class InheritanceListActionFactory
- java.lang.Object
-
- hudson.model.TransientProjectActionFactory
-
- hudson.plugins.project_inheritance.projects.actions.InheritanceListActionFactory
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public final class InheritanceListActionFactory extends TransientProjectActionFactory
Jenkins extension for creating actions that will be used for displaying the inheritance diagram of jobs of type inheritance project.One instance of this class will be created by automatically created by the Jenkins server at start up time. The Jenkins server will then call the
method for each existing job. That method will return one singlecreateFor(AbstractProject)
instance. Jenkins will then add it as a transient action to the given project.InheritanceListAction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description InheritanceListActionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<? extends Action>
createFor(AbstractProject target)
Creates and returns one single
that will be added to the given job.InheritanceListAction
-
Methods inherited from class hudson.model.TransientProjectActionFactory
all
-
-
-
-
Method Detail
-
createFor
public Collection<? extends Action> createFor(AbstractProject target)
Creates and returns one single
that will be added to the given job.InheritanceListAction
The returned
will be added by Jenkins to the given job as a transient action. Transient actions are not persisted.InheritanceListAction
The purpose of the returned
is to add a section to the job detail page with an inheritance diagram in case the job is of type inheritance project.InheritanceListAction
This method is automatically called by Jenkins during the initialisation of a job object.
- Specified by:
createFor
in classTransientProjectActionFactory
- Parameters:
target
- The job for which we are to create our action.- Returns:
- A collection with one single
instance.InheritanceListAction
-
-