Do you need to fire ContextEvent.START_UP and ContextEvent.SHUTDOWN ?

levi.strope's Avatar


25 Nov, 2009 06:36 PM

Members of my team asked me, and I didn't know.

My initial impression is that you do not need to fire these events. Is that correct?

  1. Support Staff 1 Posted by Joel Hooks on 25 Nov, 2009 06:53 PM

    Joel Hooks's Avatar

    No. They are just for convenience. I use them when bootstrapping via

  2. Support Staff 2 Posted by Shaun Smith on 25 Nov, 2009 06:54 PM

    Shaun Smith's Avatar

    Indeed, the events are purely for convenience; not needed at all. They
    are just there to support a modular workflow out-of-the-box: using
    those 4 constants you can effectively manage modular contexts from the
    outside. To close a module down you might fire off a SHUTDOWN event on
    it's dispatcher, that module might ask the user to confirm the action,
    clean itself up, and fire off the SHUTDOWN_COMPLETE event which your
    shell might be listening for.

  3. 3 Posted by levi.strope on 25 Nov, 2009 06:58 PM

    levi.strope's Avatar

    Thanks a bunch. That is what I figured but I wanted to be sure.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac