Ah, I don't pass the logger in via a constructor, it's coming from a property in a base class that does a lookup in the container. This makes sense for the logger, but I do that frequently, for example, my domain objects (I'm not using Active Record, I use iBATIS) have private properties that refer to their DAO objects, and those DAOs are obtained from the container in the same way (i.e., ApplicationContext.Current[typeof(IListingDao)] as IListingDao). Is there any way I can satisfy these dependencies without requiring constructor injection?
I can sort of do this by tweaking the order in which the components are declared in the config file, but that seems a little shady to me. If there's no way to do this with the existing Startable facility, is there a hook that I could use to write my own that would fire all of the Start methods after the container had completed its external configuration? I realize that is a little sketchy given that you can programmatically configure the container. It's also worth mentioning that I'm coming at this from a Spring perspective - I've used spring and spring.net for several years now and this is my first project with castle/windsor. If I should be looking at this from another direction, please let me know. Thanks, Shawn -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of hammett Sent: Tuesday, July 18, 2006 12:41 PM To: [email protected] Subject: Re: [Castle-users] Startable facility Shawn, the startable facilities "starts" a component whenever it's ready, but by ready I mean whenever the component has the minimum set of dependencies satisfied. How are you using the logging, can your component constructors? On 7/18/06, Shawn Hinsey <[EMAIL PROTECTED]> wrote: > I've looked around a little but I am still confused by something about > the startable facility. It seems like its dependencies aren't being > resolved. For example, my startable class uses the logging facility, > but when it starts, the logging facility isn't present in the container. > What am I missing? -- Cheers, hammett http://hammett.castleproject.org/ ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ CastleProject-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/castleproject-users ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ CastleProject-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/castleproject-users
