C. How to customize a Job ?

6. Keeping an eye on jobs

Any object is able to keep an eye on jobs, but more precisely on its execution phase ! Indeed each time the execution phase of a job changes, this job notifies all the interested objects. These objects must:

  1. implement the interface JobObserver
  2. and subscribe as observer of the jobs to observe, thanks to the method addObserver(JobObserver).