|
From: Jim M. <moo...@gm...> - 2008-07-14 14:39:46
|
On Mon, Jul 14, 2008 at 2:08 AM, Peter De Bruycker <
pet...@gm...> wrote:
> Jim,
>
> this looks good!
>
> Some questions/remarks inline:
>
> On Sun, Jul 13, 2008 at 12:40 AM, Jim Moore <moo...@gm...> wrote:
>
>> I've fleshed out my prototype a little bit more in the "adi-based-views"
>> branch. Here's the sample application in its entirety (minus imports and
>> the like). It's only 4 classes (one bootstrap, one view, two commands) and
>> a config file, but it show the ideas reasonably well:
>>
>> ----------
>>
>> public class App {
>> public static void main(String[] args) {
>> ClassPathXmlApplicationContext ctx = new
>> ClassPathXmlApplicationContext("classpath:/META-INF/spring/simple-adi-context.xml");
>> final Application app =
>> (Application)ctx.getBeansOfType(Application.class).values().toArray()[0];
>> app.start(new String[0]);
>> }
>> }
>
>
> I defined an DesktopApplicationContext interface + implementations
>
>
I tried XmlDesktopApplicationContext, but it has a bug that doesn't allow
@Autowired. Swap it out and you'll see what I mean. Haven't taken the time
to track down why.
|