Felix Meschberger wrote > Hi Justin > > EventAdmin will getService and ungetService the matching EventHandler > services for each event to be dispatched. If the component is a delayed > service, which as you state is the default, this means the instance is > created and dropped for every single event. If there are a lot of them, this > will place some load on the system. > > If there are not many events, it might indeed be better to make it a delayed > service component. > > I think there once has been a discussion on some list (I cannot remember > where or when, sorry) coming to the conclusion, that EventHandler services > better be immediate. >
Right, I think we discussed this long time ago on the Felix list. Components not providing a service should never declare immediate. If a component provides a service it should not declare immediate. As with every rule there are exceptions, and event handler is one of them. Carsten -- Carsten Ziegeler Adobe Research Switzerland [email protected]
