-
Nov 26th, 2010, 03:02 AM
#1
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
-
Nov 26th, 2010, 04:50 AM
#2
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
-
Forum Rules