package com.example.spring.task; import org.springframework.context.support.AbstractApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; public class TaskManagerApp { /** * @param args */ public static void main(String[] args) { AbstractApplicationContext ctx = new ClassPathXmlApplicationContext(new String[] {"classpath:META-INF/spring/applicationContext.xml"}); TextUI ui = ctx.getBean("textUI", TextUI.class); ui.start(); } }