Packageorg.spicefactory.parsley.flex.modules
Classpublic class FlexApplicationDomainProvider
InheritanceFlexApplicationDomainProvider Inheritance DefaultApplicationDomainProvider Inheritance Object

Implementation of the ApplicationDomainProvider interface that can be used in Flex applications. It tries to determine the ApplicationDomain from the moduleFactory property of the specified view instance in case it is an UIComponent. If that attempt fails it delegates to the default implementation that this class extends.



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