Responsible for determining the ApplicationDomain based on a provided view instance.
This is a pluggable strategy that will be used in the Context bootstrap sequence in
case that no ApplicationDomain has been specified explicitly (which is quite common).
public function getDomainForView(view:DisplayObject, domainManager:GlobalDomainManager):ApplicationDomain
Determines and returns the ApplicationDomain the specified DisplayObject belongs to.
If the domain cannot be specified, this method should return null. Errors should preferrably
only be logged but not rethrown.
view:DisplayObject — the view that acts as the first view root for a new Context
domainManager:GlobalDomainManager — the manager that can be used to fetch existing domain instances to keep the reflection cache small
ApplicationDomain — the ApplicationDomain the new Context should use for reflection
Sat Apr 2 2011, 11:49 PM +01:00