Package jenkins.tasks
Class SimpleBuildStep.LastBuildActionFactory
- java.lang.Object
-
- jenkins.model.TransientActionFactory<Job>
-
- jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
-
- All Implemented Interfaces:
ExtensionPoint
- Enclosing interface:
- SimpleBuildStep
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Extension public static final class SimpleBuildStep.LastBuildActionFactory extends TransientActionFactory<Job>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description LastBuildActionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<? extends Action>
createFor(Job j)
Creates actions for a given object.Class<Job>
type()
The type of object this factory cares about.-
Methods inherited from class jenkins.model.TransientActionFactory
actionType, factoriesFor
-
-
-
-
Method Detail
-
type
public Class<Job> type()
Description copied from class:TransientActionFactory
The type of object this factory cares about. Declared separately, rather than by havingTransientActionFactory.createFor(T)
do a check-cast, so that method bodies are not loaded until actually needed.- Specified by:
type
in classTransientActionFactory<Job>
- Returns:
- the type of
TransientActionFactory
-
createFor
@NonNull public Collection<? extends Action> createFor(@NonNull Job j)
Description copied from class:TransientActionFactory
Creates actions for a given object. This may be called frequently for the same object, so if your implementation is expensive, do your own caching.- Specified by:
createFor
in classTransientActionFactory<Job>
- Parameters:
j
- an actionable object- Returns:
- a possible empty set of actions (typically either using
Collections.emptySet()
orCollections.singleton(T)
)
-
-