949596979899100101102103
} @Override public final void registerObserver(IObserver observer) { if (getMediator() == null) { throw new ObserverException( "You have to set a mediator before you can register an observer!"); } this.getMediator().register(this, observer); }