If you can change a property, then future object creationg should take the new value, but how about the older ones, they will remain same which doesn't make sense at all.
Tuna Toksöz http://tunatoksoz.com Typos included to enhance the readers attention! On Wed, Jan 28, 2009 at 5:39 PM, Tim Barcz <[email protected]> wrote: > I was wondering windsor saw the changed configuration and updated the > properties for future object creation. > > <properties> > <Sql.ConnectionString>...</Sql.ConnectionString> > </properties> > > <component id="TaxRateRepository" > service="MySuperAwesomeSite.Data.ITaxRateRepository, > MySuperAwesomeSite.Data" > type="MySuperAwesomeSite.Data.Impl.TaxRateRepository, > MySuperAwesomeSite.Data"> > <parameters> > <connectionString>#{Sql.ConnectionString}</connectionString> > </parameters> > </component> > > public class TaxRepository > { > public TaxRepository(string connectionString) > { > .... > > } > } > > On Wed, Jan 28, 2009 at 9:35 AM, Tuna Toksoz <[email protected]> wrote: > >> I guess it may not be a good idea to change connection string(even when >> you use programatical way) without a restarting the application, because >> there may be components depending on it, but they won't be aware of the >> changes. >> >> Tuna Toksöz >> http://tunatoksoz.com >> >> Typos included to enhance the readers attention! >> >> >> >> On Wed, Jan 28, 2009 at 5:04 PM, Tuna Toksoz <[email protected]> wrote: >> >>> For what reason do you want to change it? >>> >>> Tuna Toksöz >>> http://tunatoksoz.com >>> >>> Typos included to enhance the readers attention! >>> >>> >>> >>> On Wed, Jan 28, 2009 at 4:59 PM, Tim Barcz <[email protected]> wrote: >>> >>>> >>>> I needed to change a connection string in the <properties> section and >>>> when i changed it, refresh, it worked.... >>>> >>>> On Jan 28, 8:55 am, Tuna Toksoz <[email protected]> wrote: >>>> > Why do you change it? You can directly play on WindsorContainer thing? >>>> > >>>> > Tuna Toksözhttp://tunatoksoz.com >>>> > >>>> > Typos included to enhance the readers attention! >>>> > >>>> > On Wed, Jan 28, 2009 at 4:53 PM, Tim Barcz <[email protected]> >>>> wrote: >>>> > > Can someone point me to documentation on what happens when the >>>> > > windsor.config.xml file is changed at runtime? Does windsor "watch" >>>> the >>>> > > file and pickup the changes automatically, does the app need a >>>> restart? I'm >>>> > > curious for any app in general but right now currently we're using >>>> Windsor >>>> > > in a web application. >>>> > >>>> > > Wanting to know more.... >>>> > >>>> > > Tim >>>> >>>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Development List" 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-devel?hl=en -~----------~----~----~----~------~----~------~--~---
