Changes between Version 25 and Version 26 of TracDev/ComponentArchitecture
- Timestamp:
- Feb 19, 2011, 10:11:27 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/ComponentArchitecture
v25 v26 51 51 }}} 52 52 53 Remember that components follow the singleton pattern, but component managers arenot. There is only one active instance of any component per component manager. The component constructor is “magic” in that it checks with the component manager whether there´s already an active instance before allocating a new instance. If the component was already instantiated, the existing instance is returned:53 Remember that components follow the singleton pattern, but component managers do not. There is only one active instance of any component per component manager. The component constructor is “magic” in that it checks with the component manager whether there´s already an active instance before allocating a new instance. If the component was already instantiated, the existing instance is returned: 54 54 55 55 {{{