Hi,
The spec defines BeanManager.removeObserver to have a wildcard type:
public void removeObserver(Observer<?> observer);
and says "The container must stop sending event notifications to the deregistered observer." Does that sentence, taken with the wildcard type, imply that the observer should be removed for all events for which it is registered? Currently ManagerImpl implements storage of observers as a map from EventType -> Observer, which means removal of an observer without knowing its event type would be linear in # observers, unless I change the implementation.
Thanks,
-Clint
--
Clint Popetz
http://42lines.net
Scalable Web Application Development