Griffon
  1. Griffon
  2. GRIFFON-467

Skip registering controllers as application event listeners

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.5-rc1
    • Fix Version/s: 0.9.5-rc2
    • Component/s: rt
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Sometimes you don't want controllers to be registered as application event listeners because their code never handles an event. This results in performance upgrades as controllers need not be notified.

      This feature is generic enough to warrant inclusion in griffon core.
      Proposal: specify a special key in the group's config section that marks this group for no event notification, like this

      mvcGroups {
          // MVC Group for "foo"
          'foo' {
              model      = 'foo.FooModel'
              view       = 'foo.FooView'
              controller = 'foo.FooController'
              config {
                  events {
                      listener = false
                  }
              }
          }
      }
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Andres Almiray
            Reporter:
            Andres Almiray
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: