183 | | ''Components are singletons. They should be '''stateless'''.'' |
184 | | |
185 | | This means each component only exists once (within a single process). It's designed to be reused for multiple - possibly concurrent - web request. So it can't (read: should not) store information from one request in its class members and reuse this information in the next request. |
| 183 | ''There is only '''one active instance''' of any component per component manager. They should be '''stateless'''.'' |
| 184 | |
| 185 | This means that within the same component manager instance (usually `trac.env.Environment()`) components can be considered singletons. Components need to be implemented to be reused for multiple - possibly concurrent - web request. So they can't (read: should not) store information from one request in their class members and reuse this information in the next request. |