An application-wide instance of Init contains a map from event names to ObserverMethod. While each ObserverMethod certainly has a reference to component to be notified, this is not the feature I miss.
My problem is that this mapping from event names to observers is application-wide (read: monolithic), which is not consistent with value mappings (I mean, e.g., Component.getInstanceToInject) that use a kind of lexical scoping and thus it is possible to have different values bound to the same name. Thus the natural workaround sounds to just store observers as values (bijection) and thus piggyback one feature on another, but unfortunately the nature of observers requires multiple independent components to contribute their observers to the same event name, and I do not see how to do that with bijection. I hope I am more clear now. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947181#3947181 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947181 ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
