Yes, absolutely, each bean is treated as a singleton unless otherwise specified. Good point!

On Jan 6, 2006, at 3:28 PM, Peter J. Farrell wrote:

Chris Scott wrote:

Hmm, that typeo makes what I wrote totally unclear, sorry. The
default behavior of the bean factory is to create objects only when
asked for them, so if you call getBean('userService'), userService
will be created at that time. Unless, of course, it has already been
created by a previous call to getBean('userService').

Or it has been created because it was a dependency in another bean in
the factory?

Ex.

thisService {
    property someOtherService = ref(someOtherService)
}
someOtherService (singleton=TRUE) {
    props....
}

Am I correct?

--
Peter J. Farrell :: Maestro Publishing
http://blog.maestropublishing.com

Rooibos Generator - Version 2.1
Create boilerplate beans and transfer objects for ColdFusion!
http://rooibos.maestropublishing.com/

- Member Team Mach-II
- Member Team Fusion




Reply via email to