On Tuesday 09 Sep 2008, denstar wrote: > Cool. Some fools still just stick the factory in the application scope.
That's fine, and that's where my BeanFactory lives. > Heh. I've touched on this before, but the main reason I was doing it > was to get a list of objects. > If you have to know an object name first, you have the egg/chicken problem. Well, if you are wanting to hook into Reactors generation mechanism, you can do that inside the Reactor classes, which have access to the _getConfig() method anywhere (or a local subset). > For another usecase, setting the DSN on the fly, you cannot just > change the settings in your config object (last I checked, I think), > you need to re-initialize the factory with the new config object. Or you can swap the database the DSN is connected to using ServiceFactory. Or have a 'template' reactor.xml that you replace tokens in. > So you're juggling beans, where it sorta seems like the factory should > let you know how it's configured (and perhaps even change it). I'd say this breaks encapsulation. > Besides having to fork the code though, I haven't run into any > problems by exposing the configuration... Yeah, to be clear - it'll work fine. -- Tom Chiverton **************************************************** This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [EMAIL PROTECTED] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
