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 interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description TransientActionFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<? extends Action>
createFor(AbstractItem target)
Creates actions for a given object.Class<AbstractItem>
type()
The type of object this factory cares about.-
Methods inherited from class jenkins.model.TransientActionFactory
actionType, factoriesFor
-
-
-
-
Method Detail
-
type
public Class<AbstractItem> 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
public Collection<? extends Action> createFor(AbstractItem target)
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)
)
-
-