Thanks. Guess I'll just grab the latest from trunk to get the fluent hibernate stuff. Know how to have Windsor Integration read from the config as well? The documentation said it ignores the controllers node when Windsor is turned on.
On Jul 9, 9:02 pm, Mauricio Scheffer <[email protected]> wrote: > To register and add parameters programmatically, take a look at the > fluent registration > API:http://using.castleproject.org/display/IoC/Fluent+Registration+API > > In your case, it would like this: > > Register(Component.For<HomeController>().Named > ("home.controller").Parameters(Parameter.ForKey("fileName").Eq > ("Vendordb"))); > > On Jul 9, 9:08 pm, BlessYAHU <[email protected]> wrote: > > > > > Have a monorail project where I'm trying to use Windsor Integration. > > The controllers are sitting in a seperate folder. Here's the > > xml:http://pastebin.com/m304d129a > > > When I add the controller from the web app container, that works, but > > I don't know how to add parameters. How do you add parameters when > > adding a component programmatically this way, and how do you get > > Monorail's Windsor Integration to look at the config file? > > > public class WebAppContainer : WindsorContainer > > { > > public WebAppContainer() : base( new XmlInterpreter( new > > ConfigResource() ) ) > > { > > RegisterFacilities(); > > RegisterComponents(); > > } > > > protected void RegisterFacilities() > > { > > > AddFacility( "rails", new RailsFacility() ); > > } > > > protected void RegisterComponents() > > { > > > AddComponent<HomeController>("home.controller"); > > } > > } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
