I'd imagine main reason to put bean factory into your objects is to use ColdSpring for injecting into transients. You might want to have a UserService.new() that returns a User bean via ColdSpring injected with DAO, etc. That would be a valid use case for having access to the bean factory.
Is there a recommended approach? Best Wishes, Peter On 6/19/07 3:32 AM, "Sean Corfield" <[EMAIL PROTECTED]> wrote: > On 6/18/07, Anthony Israel-Davis <[EMAIL PROTECTED]> wrote: >> Is there a generally accepted way to inject the defaultXMLBeanFactory into >> objects? If not what are the various ways people are accessing the >> beanFactory in their applications? > > In general you don't need the bean factory inside your objects - you > can have ColdSpring create them all and inject them into each other as > needed.
