Package jenkins.branch
Class Branch.TransientJobActionsFactoryImpl
- java.lang.Object
-
- jenkins.model.TransientActionFactory<Job>
-
- jenkins.branch.Branch.TransientJobActionsFactoryImpl
-
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
- Branch
@Extension public static class Branch.TransientJobActionsFactoryImpl extends TransientActionFactory<Job>
Ensures that theBranch.getActions()
are always present in theActionable.getAllActions()
. NOTE: We need to use a transient action factory asAbstractProject.getActions()
is unmodifiable and consequentlyActionable.addAction(Action)
will always fail.- Since:
- 2.0
-
-
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 TransientJobActionsFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<? extends Action>
createFor(Job target)
Class<Job>
type()
-
Methods inherited from class jenkins.model.TransientActionFactory
actionType, factoriesFor
-
-
-
-
Method Detail
-
type
public Class<Job> type()
- Specified by:
type
in classTransientActionFactory<Job>
-
createFor
@NonNull public Collection<? extends Action> createFor(@NonNull Job target)
- Specified by:
createFor
in classTransientActionFactory<Job>
-
-