They are run after the whole XML configuration files are read, but before any (other) beans are instantiated.
Great, that's what I was after, thanks very much – mlo55 Nov 16 '09 at 3:26.
You can also use the ApplicationListener to receive notification of events like ContextClosedEvent, ContextStartedEvent or ContextStoppedEvent. More information in the IoC Container chapter.
I don't think ApplicationListeners get notified before the context starts up, there doesn't seem to be an event for that. – skaffman Nov 16 '09 at 13:52 from the ContextRefreshedEvent JavaDoc: "Event raised when an ApplicationContext gets initialized or refreshed. " I'll ckeck tonight if the event is sent before the initialization or just after.
– Vladimir Nov 16 '09 at 16:11 I'm trying to listen on ContextStartedEvent but it seems that the default lifecycle of a context doesn't explicity call the start method, and so the event doesn't get published. By default lifecycle I simply mean the starting of the entire web server and context (which I expected to fire ContextStartedEvent). Any idea why that is?
– Eugen May 9 at 8:24.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.