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 |