Uploaded image for project: 'Spring.NET'
  1. Spring.NET
  2. SPRNET-21

Event Wiring Prototype Source to Singleton Sink Does Nothing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 1.0 RC1
    • Fix Version/s: 2.0 M1
    • Component/s: Spring-NET-CORE
    • Labels:
      None

      Description

      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" />
      <object name="sink" class="Sink">
      <listener event="SomeEvent" method="OnSomeEvent">
      <ref object="source" />
      </listener>
      </object>

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mark.pollack Mark Pollack
              Reporter:
              choyrim Choy Rim
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: