From: Ronald H. <ro...@co...> - 2004-05-28 18:04:51
|
Class: org.springframework.rcp.factory.LabelInfo: // todo shouldnt this class have a set method for the properties as well in stead of only constructor arguments? Class: org.springframework.rcp.application.startup.ApplicationLauncher: /** * For applications that want to instantiate their own context. * @param context */ public ApplicationLauncher(ApplicationContext context) { this.applicationContext = context; launch(context); } private void launch(String startupContext, String[] contextPaths) { logger.info("Launching Console..."); try { if (startupContext != null) { ApplicationContext startup = new ClassPathXmlApplicationContext( startupContext); displaySplashScreen(startup); } } catch (RuntimeException e) { logger.warn("Exception occured initializing context.", e); } try { ApplicationContext applicationContext = new ClassPathXmlApplicationContext(contextPaths); launch(applicationContext); } catch (RuntimeException e) { logger.warn("Exception occured initializing context.", e); } } private void launch(ApplicationContext applicationContext) { if (splashScreen == null) { displaySplashScreen(applicationContext); } try { Application console = (Application)applicationContext .getBean(APPLICATION_BEAN_NAME); console.openMainConsoleWindow(); } catch (RuntimeException e) { logger.error("Exception occured initializing console.", e); } finally { destroySplashScreen(); logger.debug("Launcher thread exiting..."); } } And thats it for now. Cheers Ronald |
From: Keith D. <kd...@cs...> - 2004-05-28 18:57:33
|
Ronald, I just incorporated these. Thanks! I added a setter but made it private; as the application launcher really is something that should be immutable (short lived object that bootstraps the app.) Keith -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf Of Ronald Haring Sent: Friday, May 28, 2004 2:05 PM To: spr...@li... Subject: [Springframework-rcp-dev] From my diff list Class: org.springframework.rcp.factory.LabelInfo: // todo shouldnt this class have a set method for the properties as well in stead of only constructor arguments? Class: org.springframework.rcp.application.startup.ApplicationLauncher: /** * For applications that want to instantiate their own context. * @param context */ public ApplicationLauncher(ApplicationContext context) { this.applicationContext = context; launch(context); } private void launch(String startupContext, String[] contextPaths) { logger.info("Launching Console..."); try { if (startupContext != null) { ApplicationContext startup = new ClassPathXmlApplicationContext( startupContext); displaySplashScreen(startup); } } catch (RuntimeException e) { logger.warn("Exception occured initializing context.", e); } try { ApplicationContext applicationContext = new ClassPathXmlApplicationContext(contextPaths); launch(applicationContext); } catch (RuntimeException e) { logger.warn("Exception occured initializing context.", e); } } private void launch(ApplicationContext applicationContext) { if (splashScreen == null) { displaySplashScreen(applicationContext); } try { Application console = (Application)applicationContext .getBean(APPLICATION_BEAN_NAME); console.openMainConsoleWindow(); } catch (RuntimeException e) { logger.error("Exception occured initializing console.", e); } finally { destroySplashScreen(); logger.debug("Launcher thread exiting..."); } } And thats it for now. Cheers Ronald ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Springframework-rcp-dev mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev |
From: Ronald H. <ro...@co...> - 2004-05-29 11:57:21
|
Thx Keith, but... I wanted the applicationContext to be set separately because, I like to load my xml files from one pre-defined location. That is possible now, but there is no launch now anymore. The set propertie I was referring to was the set for the text of LabelInfo, not the context. Cheers Ronald Keith Donald wrote: >Ronald, > >I just incorporated these. Thanks! > >I added a setter but made it private; as the application launcher really is >something that should be immutable (short lived object that bootstraps the >app.) > >Keith > > |
From: Keith D. <kd...@cs...> - 2004-05-29 14:33:24
|
Yes that's a bug; done, thanks for letting me know. I incorporated the label info change as well. Keith -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf Of Ronald Haring Sent: Saturday, May 29, 2004 7:36 AM To: spr...@li... Subject: Re: [Springframework-rcp-dev] From my diff list Thx Keith, but... I wanted the applicationContext to be set separately because, I like to load my xml files from one pre-defined location. That is possible now, but there is no launch now anymore. The set propertie I was referring to was the set for the text of LabelInfo, not the context. Cheers Ronald Keith Donald wrote: >Ronald, > >I just incorporated these. Thanks! > >I added a setter but made it private; as the application launcher really is >something that should be immutable (short lived object that bootstraps the >app.) > >Keith > > ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Springframework-rcp-dev mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev |