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:
- implement the interface JobObserver
- and subscribe as observer of the jobs to observe, thanks to the method addObserver(JobObserver).