Hi,

I am very confused about the right way to do IoC with Fortress.
org.apache.avalon.fortress.examples.swing.SwingContainer in the Fortress
examples seems to indicate that the way to get access to a component is to
explicitly call lookup() on the service manager.  I don't see how this is
IoC, since I have full control of the public interface of the service
manager.  Contrast this with the way XWork's component manager operates.  It
pushes components to you.  It seems more IoC to me.  I know this can be done
with the service() method using "@avalon.dependency", but the components I
am writing are not providing service() - I'm writing a Swing app, not a
service.

So, the crux of my question is:  what is the recommended way to acquire
components in Fortress applications, especially when not using service()?

Many thanks,
Mike.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to