Package jenkins.model
Class RenameAction.TransientActionFactoryImpl
java.lang.Object
jenkins.model.TransientActionFactory<AbstractItem>
jenkins.model.RenameAction.TransientActionFactoryImpl
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
- RenameAction
@Extension
public static class RenameAction.TransientActionFactoryImpl
extends TransientActionFactory<AbstractItem>
-
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
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends Action>
createFor
(AbstractItem target) Creates actions for a given object.type()
The type of object this factory cares about.Methods inherited from class jenkins.model.TransientActionFactory
actionType, factoriesFor
-
Constructor Details
-
TransientActionFactoryImpl
public TransientActionFactoryImpl()
-
-
Method Details
-
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<AbstractItem>
- Returns:
- the type of
TransientActionFactory
-
createFor
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<AbstractItem>
- Parameters:
target
- an actionable object- Returns:
- a possible empty set of actions (typically either using
Collections.emptySet()
orCollections.singleton(T)
)
-