Troubles getting config [PostConstruct] method to invoke

krflash's Avatar


10 May, 2012 07:33 PM

Hey Shaun,
I am updating my simple signal command map example and my mxml builder is not seeming to do anything with the config. My main mxml has:

<cfg:AppBundle />
<cfg:AppConfig />


My bundle has extend called just fine. But the plain class config AppConfig never gets a post construct called. Is there something a bit different with this implementation now? I need to do a more granular startup so I do not need this anymore. I just wanted to make sure I was not missing a potential issue.

  1. Support Staff 1 Posted by Shaun Smith on 10 May, 2012 07:53 PM

    Shaun Smith's Avatar

    Hmm.. that's weird. Configs should still work. Are you sure that the context is even initializing? Does you bundle install the StageSyncExtension?

  2. 2 Posted by krflash on 10 May, 2012 08:38 PM

    krflash's Avatar

    I was thinking that is the main issue - not having needed bundles installed. I was using the classic before. I extended a few things into the bundle and will add that as well.

  3. 3 Posted by krflash on 10 May, 2012 08:51 PM

    krflash's Avatar

    Okay I am back on track!

        public function extend( context:IContext ):void
            context.extend( ContextViewExtension )
            context.extend( StageSyncExtension );
            context.extend( CommandMapExtension );
            context.extend( MediatorMapExtension );
            context.extend( SignalCommandMapExtension );

    Now my config is getting picked up. I have other errors to fix now :)

  4. krflash closed this discussion on 10 May, 2012 08:51 PM.

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