01: package org.directwebremoting.event;
02:
03: import java.util.EventListener;
04:
05: import org.directwebremoting.proxy.openajax.PubSubHub;
06:
07: /**
08: * Subscriptions in a {@link PubSubHub} happen with a {@link PublishListener}
09: * to recieve the publish events via {@link #publishHappened(PublishEvent)}
10: * @author Joe Walker [joe at getahead dot ltd dot uk]
11: */
12: public interface PublishListener extends EventListener {
13: /**
14: * When a publish event goes off that matches the filters we subscribed
15: * @param ev The publish event
16: */
17: public void publishHappened(PublishEvent ev);
18: }
|