1 20 package org.enhydra.barracuda.core.event; 21 22 import java.io.*; 23 import java.util.*; 24 25 28 public interface EventBroker { 29 30 35 public String getEventExtension(); 36 37 43 public void addEventListener(ListenerFactory factory); 44 45 55 public void addEventListener(ListenerFactory factory, Class event) throws InvalidClassException; 56 57 62 public void removeEventListener(ListenerFactory factory); 63 64 75 public void removeEventListener(ListenerFactory factory, Class event) throws InvalidClassException; 76 77 83 public void purgeEventListener(ListenerFactory factory); 84 85 93 public void addEventAlias(Class event) throws InvalidClassException; 94 95 104 public void addEventAlias(Class event, String alias) throws InvalidClassException; 105 106 112 public ListenerFactory getEventListener(Object id); 113 114 124 public List getEventListeners(Class event) throws InvalidClassException; 125 126 137 public String matchEventClass(String eventStr) throws InvalidClassException; 138 139 150 public String matchListenerID(String idStr) throws InvalidClassException; 151 152 153 172 public void dispatchEvent(EventContext context) throws EventException; 173 174 175 176 } 177 | Popular Tags |