public interface BackgroundServicesList
Modifier and Type | Method and Description |
---|---|
void |
add(BackgroundService background)
Adds a background.
|
void |
addObserver(Observer observer)
Adds an observer to this background services list.
|
void |
deleteObserver(Observer observer)
Deletes an observer.
|
BackgroundService[] |
getBackgroundServices()
Gets all registered background services.
|
void |
remove(BackgroundService background)
Removes a background.
|
void addObserver(Observer observer) throws java.lang.NullPointerException
The observer will be notified when the background services list will be modified.
observer
- an observer to be added.java.lang.NullPointerException
- if the given observer is null
.Observable.addObserver(Observer)
,
add(BackgroundService)
,
remove(BackgroundService)
void deleteObserver(Observer observer)
The observer will no longer be notified of this background services list modification.
observer
- an observer to be removed.Observable.deleteObserver(Observer)
void add(BackgroundService background)
The observers will be notified with the background as argument.
background
- the background to be added.void remove(BackgroundService background)
The observers are notified with the background as argument.
background
- the background to be removed.BackgroundService[] getBackgroundServices()