package hudson.model.listeners; import hudson.model.Hudson; import hudson.model.Job; /** * Receives notifications about jobs. * *

* This is an abstract class so that methods added in the future won't break existing listeners. * * @author Kohsuke Kawaguchi * @see Hudson#addListener(JobListener) */ public abstract class JobListener { /** * Called after a new job is created and added to {@link Hudson}. */ public void onCreated(Job j) { } /** * Called after all the jobs are loaded from disk into {@link Hudson} * object. * * @since 1.68 */ public void onLoaded() { } /** * Called right before a job is going to be deleted. * * At this point the data files of the job is already gone. */ public void onDeleted(Job j) { } }