On Jun 20, 2012, at 9:14 AM, Romain Manni-Bucau wrote: > Hi, > > i just pushed a new feature: InitHooks > > the goal is to get a hook to execute code before the real container > startup. The idea was to run code working on config if needed but no more. > > Why i didnt use services was to get a simpler API (you simply need to > implement a Runnable) and to be invocated earlier. > > A sample is the updatechecker which is now no more integrated in the > lifecycle of the startup directly (the only link i added is an alias on the > qualified name to be a bit more user friendly) > > Any issue with it?
Having more extensibility in the server is great. Let me take a shot at a slightly different approach. Something like what we did the client with a CDI-like observer pattern. As I mentioned in that email, we might want to do it in the server as well. Sounds like a good time to try it out. -David
