Package hudson.model
Class Job.LastItemListener
- java.lang.Object
-
- hudson.model.listeners.ItemListener
-
- hudson.model.Job.LastItemListener
-
- All Implemented Interfaces:
ExtensionPoint
@Extension(ordinal=-1.7976931348623157E308) public static class Job.LastItemListener extends ItemListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description LastItemListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonCopied(Item src, Item item)Called after a new job is created by copying from an existing job.-
Methods inherited from class hudson.model.listeners.ItemListener
all, checkBeforeCopy, fireLocationChange, fireOnCopied, fireOnCreated, fireOnDeleted, fireOnUpdated, onBeforeShutdown, onCheckCopy, onCreated, onDeleted, onLoaded, onLocationChanged, onRenamed, onUpdated, register
-
-
-
-
Method Detail
-
onCopied
public void onCopied(Item src, Item item)
Description copied from class:ItemListenerCalled after a new job is created by copying from an existing job. For backward compatibility, the default implementation of this method callsItemListener.onCreated(Item). If you choose to handle this method, think about whether you want to call super.onCopied or not.- Overrides:
onCopiedin classItemListener- Parameters:
src- The source item that the new one was copied from. Never null.item- The newly created item. Never null.
-
-