1 2 package org.state4j.publishing; 3 4 import java.util.List; 5 import java.util.Vector; 6 7 public class ObserverImpl implements Observer { 8 private List<Publisher> publishers = new Vector<Publisher>(); 9 10 public ObserverImpl() {} 11 12 public void notify(Publishable arg0) {} 13 14 public void addPublisher(Publisher arg0) { 15 this.publishers.add(arg0); 16 } 17 18 public void removePublisher(Publisher arg0) { 19 this.publishers.remove(arg0); 20 } 21 }