Yeah but basically that removes the point of using the initNonLazyBeans and goes back to just being forced to manage it yourself by manually grabbing beans. Which I suppose might be the option given Sean's fairly unusual situation. To keep the non-lazy initialization it seems like ColdSpring would have to either do some logic that would check the dependencies of the non-lazy beans and make sure everything was wired up correctly, or else offer some way to specify or force an order to the way the non-lazy beans are initialized. It might even be as simply as making the non-lazy beans be created in the order they are defined in the config file. I hate having an "order" rear its head in the config file but it might be the easiest way.
Sound about right Sean? And to be clear, does it all work correctly if you make the Observer lazy="true" and actually grab it yourself in OnApplicationStart() after ColdSpring is initialized using getBean()? On Feb 6, 2008 4:31 AM, Tom Chiverton <[EMAIL PROTECTED]> wrote: > On Wednesday 06 Feb 2008, Sean Corfield wrote: > > Any suggestions / tricks for doing this automatically in other > > applications? > > Some process in Application.cfc that requests (and disposes) of the > required > beans from the BeanFactory during applicationStart ? > > -- > 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. > >
