summaryrefslogtreecommitdiff
path: root/spring-framework/spring-task-manager-structure/src/main/java/com/example/spring/task/TaskManagerApp.java
blob: 0e2c65d9c315a66ab35dc9605314d1897a3b5b94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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();
	}

}