Discussion:
start() on my Startable class is not being called
Rob Griffin
2007-11-01 03:14:11 UTC
Permalink
Hello,

I'm trying to test lifecycle management with PicoContainer 2.0 beta 2.

My code is as follows

MutablePicoContainer pico = new PicoBuilder().withLifecycle().build();
pico.addComponent(MonitoredEntity.class);
pico.addComponent(QueueManager.class);
pico.addComponent(ThreadManager.class);
pico.start();

MonitoredEntity monitoredEntity = pico.getComponent(MonitoredEntity.class);

QueueManager and ThreadManager both implement Startable but start is never called for either instance that is created.

Am I doing something wrong?

Regards,

Rob Griffin
Quest Software
Phone +613 98118021

www.quest.com<http://www.quest.com>

Loading...