Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: event system

  1. #11
    Join Date
    Jun 2009
    Location
    Los Angeles
    Posts
    6

    Default

    Quote Originally Posted by cherreman View Post
    I might be missing something here (or just misinterpreting jlcheng's post), but I think this request is for autowiring ActionScript objects with view components. As far as I know, we only support the other way around (inject object into view, not view into object).
    Hi Christophe,

    Wiring ActionScript objects with view components is exactly what I mean. What is your take on this functionality? Would it be something Spring ActionScript would be interested in adding? Would it fit within the design of Spring ActionScript?

  2. #12
    Join Date
    Dec 2008
    Location
    Brussels
    Posts
    407

    Default oops, misread...

    Oops,

    yea, now that I re-read the post I guess I misunderstood. Yet, implementing this doesn't seem to be awfully complicated. We already have the stage listener in the applicationcontext wiring the view components, I see no direct complications in injecting those instances into any of the object defined in the configuration.

  3. #13
    Join Date
    Dec 2008
    Location
    Brussels
    Posts
    407

    Default new stage interception

    Alright, I think I've managed to whip something up to will do exactly what you mention. (At least I think so hehe)

    I just committed a new IObjectPostProcessor called StageComponentInterceptionPostProcessor, this postprocessor can evaluate components and objects based on the approval of a separate IObjectSelector and when approved inject the specified component into another object.

    I've also added a namespace handler for it so you can use some shorthand markup like this:

    Code:
    <si:stageinterceptor target-object="stageRegistry" target-method="register"
                         object-selector="registrySelector" id="stageInterceptor"/>
    Source and documentation have been committed, if anyone would like to try it out, please feel free to do so and give some comments.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •