Results 1 to 2 of 2

Thread: Spring actionscript autowire

  1. #1
    Join Date
    Nov 2010
    Posts
    7

    Default Spring actionscript autowire

    Hi,

    i have been reading the docs and something that i dun understand about this autowire.

    Autowire is to allow developers to inject models into views.

    the reason because sometimes the models had other dependencies, right?

    but if i do not want to use autowiring, whats the other method that can allow me to do an inject into views with the model that had a dependency on other models/service ?

    Regards
    Roy

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

    Default object definitions

    By not wanting to use autowiring I am supposing you don't want to use the [Autowired] metadata, right?

    Well, the other method is to create XML object definitions for your views that describe your dependencies (just like you create them for 'regular' objects).

    Please refer to this doc section as to how this works exactly:

    http://www.springactionscript.org/docs/reference/html/container-documentation.html#how_to_determine_which_objectde finition_to_use_for_which_stage_component

    hope that helps,

    cheers,

    Roland

Posting Permissions

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