/** * @param interfaceToTypes map from interace to a particular event * @throws ClassNotFoundException if the interface is a key, but the corresponding class cannot be loaded */ public synchronized void addAllInterfaceToTypes(Map<Class<? extends NotificationListener>, Set<Class<? extends Notification>>> interfaceToTypes) throws ClassNotFoundException { dirty = true; for (Object iface : interfaceToTypes.keySet()) { addInterfaceToType(toClass(iface), toClass(interfaceToTypes.get(iface))); } }
synchronized void disableAllTypes(Collection types) throws ClassNotFoundException { dirty = true; for (Iterator event = types.iterator(); event.hasNext();) { disableType(toClass(event.next())); } }
public synchronized void disabledAllInterfaces(Collection<Class<? extends NotificationListener>> interfaces) throws ClassNotFoundException { dirty = true; for (Object element : interfaces) { disableInterface(toClass(element)); } }