[SPRNET-21] Event Wiring Prototype Source to Singleton Sink Does Nothing Created: 05/Jan/05 Updated: 05/Nov/08 Resolved: 01/Oct/07
|Affects Version/s:||1.0 RC1|
|Fix Version/s:||2.0 M1|
|Reporter:||Choy Rim||Assignee:||Mark Pollack|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
If you use a prototype (as opposed to singleton) object as an event source to be wired to a singleton event sink, you get unintuitive results – it looks like nothing was wired. so the following configuration:
<object name="source" class="Source" singleton="false" />
Intuitively you'd think that whenever you create a source, that sink will be automatically wired to it. Right now, that doesn't happen. We've got to either throw an exception or do the intuitive thing.
|Comment by Choy Rim [ 05/Jan/05 ]|
I forgot to change the priority. It's minor not major.
|Comment by Choy Rim [ 19/Jan/05 ]|
I've got an idea how to deal with this in an intuitive manner. We'll have a global subscription manager, an object responsible for maintaining the link between different id's in the container as well as actual instances of the id's.
During the config parsing stage, the object factory will add subscriptions to the subscription manager. During the "runtime" stage, when objects are created, the factory will check the subscription manager to determine with object instance events need to be wired up, and record the wiring (as a weak reference).
BTW, how do I figure out how to assign this bug to me?