On Tue, Sep 9, 2008 at 2:34 AM, Tom Chiverton wrote: > On Tuesday 09 Sep 2008, denstar wrote: >> ??? I'm not sure what you mean. Why is it more trouble, and what >> were you using it for? > > It no longer becomes possible to just drop new Reactor releases in, for > instance.
Heh. My main reason for submitting patches. :-) As The Tick says: SPOON! (vs. fork) >> you can get the "current" configuration from Hibernate, *from* >> hibernate, vs another object. What are you going to do with one or >> the other, alone? *scratches head* :] > > We wire everything together with ColdSpring, so having 'just another bean' for > the config works really well. Cool. Some fools still just stick the factory in the application scope. I was working (sorta) on a plugin of sorts... wanted lowest common denominator or whatnot... >> I'm sure it's there, but I'm just missing the "badness" of having >> access to the current config from the factory. If only for >> introspection type stuff. > > There is no need to make this function public (I thought there was once, but I > was wrong). > Inside custom Gateways etc., you already have access to (most of) the bits you > need, and if something external to that needs to know about the Reactor > config, you are (probably) Doing It Wrong. 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. 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. 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). But I guess that's just my approach, and it's quite possible I'm doing it wrong, and it's brittle, not flexible like I'm thinking. Besides having to fork the code though, I haven't run into any problems by exposing the configuration... :Den -- You have to allow a certain amount of time in which you are doing nothing in order to have things occur to you, to let your mind think. Mortimer Adler -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [EMAIL PROTECTED] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
