Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: Spring-NET-CORE
    • Labels:
      None

      Description

      snip from Alek's email on 1/28/2005.

      I'm starting to think we got event wiring backwards first
      time around...

      Right now we are wiring events within listener definition
      and it probably makes more sense to declare them within
      event source definition and reference listeners.

      To give you an example, what I would like to change is this:

      <object name="source" type="Examples.RegexSource,
      ExamplesLibrary"/>

      <object name="validator" type="Examples.CustomValidator,
      ExamplesLibrary">
      <listener event="Validating" method="WhenValidating">
      <ref class="Examples.StaticEventSource,
      ExamplesLibrary"/>
      </listener>
      </object>

      To this:

      <object name="source" type="Examples.RegexSource,
      ExamplesLibrary">
      <event name="Validating">
      <list>
      <listener type="Examples.CustomValidator,
      ExamplesLibrary" method="WhenValidating"/>
      <listener object="listenerInstance"
      method="WhenValidating"/> </list>
      </event>
      </object>

      <object name="listenerInstance"
      type="Examples.CustomValidator, ExamplesLibrary"/>

      Let me know what everyone thinks, but this makes a lot more
      sense for ASP.Net Page events and it avoids
      prototype/singleton related problems this first approach
      has.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mark.pollack Mark Pollack
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: