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>
A
TransientActionFactory to add an action to specific MultiBranchProject.- Author:
- Simon Symhoven
-
Nested Class Summary
Nested classes/interfaces inherited from class jenkins.model.TransientActionFactory
TransientActionFactory.CacheNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends Action> createFor(jenkins.branch.MultiBranchProject multiBranchProject) Add the action to the selectedMultiBranchProject.Class<jenkins.branch.MultiBranchProject> type()Specifies theClassof the job (MultiBranchProject) to add the action to.Methods inherited from class jenkins.model.TransientActionFactory
actionType, factoriesFor
-
Constructor Details
-
MonitoringMultibranchProjectActionFactory
public MonitoringMultibranchProjectActionFactory()
-
-
Method Details
-
type
Specifies theClassof the job (MultiBranchProject) to add the action to.- Specified by:
typein classTransientActionFactory<jenkins.branch.MultiBranchProject>- Returns:
- the
Classof 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:
createForin classTransientActionFactory<jenkins.branch.MultiBranchProject>- Parameters:
multiBranchProject- the job to add the action to.- Returns:
CollectionsofMonitoringMultibranchProjectAction.
-