Package io.jenkins.plugins.monitoring
Class MonitoringMultibranchProjectActionFactory
- java.lang.Object
-
- jenkins.model.TransientActionFactory<jenkins.branch.MultiBranchProject>
-
- io.jenkins.plugins.monitoring.MonitoringMultibranchProjectActionFactory
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class MonitoringMultibranchProjectActionFactory extends TransientActionFactory<jenkins.branch.MultiBranchProject>
ATransientActionFactory
to add an action to specificMultiBranchProject
.- Author:
- Simon Symhoven
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jenkins.model.TransientActionFactory
TransientActionFactory.Cache
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description MonitoringMultibranchProjectActionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<? extends Action>
createFor(jenkins.branch.MultiBranchProject multiBranchProject)
Add the action to the selectedMultiBranchProject
.Class<jenkins.branch.MultiBranchProject>
type()
Specifies theClass
of the job (MultiBranchProject
) to add the action to.-
Methods inherited from class jenkins.model.TransientActionFactory
actionType, factoriesFor
-
-
-
-
Method Detail
-
type
public Class<jenkins.branch.MultiBranchProject> type()
Specifies theClass
of the job (MultiBranchProject
) to add the action to.- Specified by:
type
in classTransientActionFactory<jenkins.branch.MultiBranchProject>
- Returns:
- the
Class
of the job to add the action to.
-
createFor
@NonNull public Collection<? extends Action> createFor(@NonNull jenkins.branch.MultiBranchProject multiBranchProject)
Add the action to the selectedMultiBranchProject
.- Specified by:
createFor
in classTransientActionFactory<jenkins.branch.MultiBranchProject>
- Parameters:
multiBranchProject
- the job to add the action to.- Returns:
Collections
ofMonitoringMultibranchProjectAction
.
-
-