| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| SMTPLogsObservable |
|
| 1.0;1 |
| 1 | package com.nilhcem.fakesmtp.log; | |
| 2 | ||
| 3 | import java.util.Observable; | |
| 4 | ||
| 5 | /** | |
| 6 | * Provides an observable object to notify the {@code LogsPane} object when a new log is received. | |
| 7 | * | |
| 8 | * @author Nilhcem | |
| 9 | * @since 1.0 | |
| 10 | */ | |
| 11 | 1 | public final class SMTPLogsObservable extends Observable { |
| 12 | /** | |
| 13 | * Notify the {@code LogsPane} object when a new log is received. | |
| 14 | * | |
| 15 | * @param arg a String representing the received log. | |
| 16 | */ | |
| 17 | @Override | |
| 18 | public void notifyObservers(Object arg) { | |
| 19 | 1 | setChanged(); |
| 20 | 1 | super.notifyObservers(arg); |
| 21 | 1 | } |
| 22 | } |