Packageorg.spicefactory.parsley.core.bootstrap.impl
Classpublic class DefaultApplicationDomainProvider
InheritanceDefaultApplicationDomainProvider Inheritance Object
Implements ApplicationDomainProvider
Subclasses FlexApplicationDomainProvider

The default implementation of the ApplicationDomainProvider interface that can also be used in pure Flash Applications. It tries to determine the ApplicationDomain from the loaderInfo or root.loaderInfo properties of the specified DisplayObject.



Public Methods
 MethodDefined By
  
getDomainForView(view:DisplayObject, domainManager:GlobalDomainManager):ApplicationDomain
Determines and returns the ApplicationDomain the specified DisplayObject belongs to.
DefaultApplicationDomainProvider
Method Detail
getDomainForView()method
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.

Parameters

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

Returns
ApplicationDomain — the ApplicationDomain the new Context should use for reflection