001 package org.springframework.richclient.samples.dataeditor.app;
002
003 import org.apache.commons.logging.Log;
004 import org.apache.commons.logging.LogFactory;
005 import org.springframework.richclient.application.ApplicationLauncher;
006
007 public class DataEditorApp
008 {
009 private static final Log logger = LogFactory.getLog(DataEditorApp.class);
010
011 public static void main(String[] args) {
012 logger.info("Data editor sample starting up");
013
014 String rootContextDirectoryClassPath = "/org/springframework/richclient/samples/dataeditor/ctx";
015
016 String startupContextPath = rootContextDirectoryClassPath + "/startup.xml";
017
018 String richclientApplicationContextPath = rootContextDirectoryClassPath + "/appbundle.xml";
019
020 try {
021 new ApplicationLauncher(startupContextPath, new String[] { richclientApplicationContextPath });
022 }
023 catch (RuntimeException e) {
024 logger.error("RuntimeException during startup", e);
025 }
026 }
027 }