author | Jaroslav Tulach <jtulach@netbeans.org> |
Sat, 14 Jun 2008 10:08:14 +0200 | |
changeset 245 | ce3b323add40 |
parent 236 | 29473326564a |
child 246 | 128db998ee1c |
permissions | -rw-r--r-- |
jtulach@225 | 1 |
package org.apidesign.anagram.app.spring; |
jtulach@225 | 2 |
|
jtulach@225 | 3 |
import org.apidesign.anagram.api.UI; |
jtulach@225 | 4 |
import org.springframework.context.ApplicationContext; |
jtulach@225 | 5 |
import org.springframework.context.support.ClassPathXmlApplicationContext; |
jtulach@225 | 6 |
|
jtulach@225 | 7 |
public final class Main { |
jtulach@225 | 8 |
private Main() { } |
jtulach@245 | 9 |
|
jtulach@225 | 10 |
public static void main(String[] args) throws Exception { |
jtulach@226 | 11 |
ApplicationContext context = new ClassPathXmlApplicationContext( |
jtulach@226 | 12 |
"org/apidesign/anagram/app/spring/conf.xml" |
jtulach@226 | 13 |
); |
jtulach@225 | 14 |
UI ui = (UI)context.getBean("ui", UI.class); |
jtulach@225 | 15 |
ui.display(); |
jtulach@225 | 16 |
} |
jtulach@225 | 17 |
} |