View Javadoc

1   package poc;
2   
3   import org.springframework.context.ApplicationContext;
4   import org.springframework.context.support.ClassPathXmlApplicationContext;
5   
6   /***
7    * todo javadoc
8    *
9    * @author Geoffrey
10   */
11  public class PocMain {
12      public static void main(String[] args) {
13          ApplicationContext applicationContext
14                  = new ClassPathXmlApplicationContext("/poc/applicationContext-swing.xml");
15          PocService pocService = (PocService) applicationContext.getBean("pocService");
16          System.out.println("Calling...");
17          System.out.println(pocService.helloWorld());
18          System.out.println("Done");
19      }
20  }