View Javadoc
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  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  		setChanged();
20  		super.notifyObservers(arg);
21  	}
22  }