Re: [Figleaf-developer] Bootstrapper vs ConfigurableBootstrapper
Status: Alpha
Brought to you by:
steckman
|
From: <sam...@ma...> - 2004-07-05 08:36:56
|
Quoting Greg Steckman <ste...@on...>: > These two are almost identical now. The difference I can see is that > Bootstrapper is a singleton while ConfigurableBootstrapper is not, and > ConfigurableBootstrapper runs the bean named Runnable rather than from a > command line parameter. > > Bootstrapper is a singleton because I needed a way in the GUI code to > get the ObjectManager without relying on the Spring ApplicationContext. > > Greg > We can use Spring to 'inject' the ObjectManager into your SwingViewer - this is how I handle my ConfigurationViewer. I don't rely on Spring for this either, I just rely on being able to get an ObjectManager from whatever ApplicationConfiguration I'm using. sam http://www.magpiebrain.com/ |