Packageorg.swizframework.utils
Classpublic class DomainUtil
InheritanceDomainUtil Inheritance Object



Public Methods
 MethodDefined By
  
getDomain(object:Object):ApplicationDomain
[static] Returns the domain used to load an object.
DomainUtil
  
getModuleDomain(object:Object):ApplicationDomain
[static] Returns the domain used to load an a module, only if the object supplied is a module.
DomainUtil
Method Detail
getDomain()method
public static function getDomain(object:Object):ApplicationDomain

Returns the domain used to load an object. Because of significant issues in the Flex Framework, we will either use the ModuleManager or fall back on ApplicationDomain.currentDomain. This is because an object's loaderInfo may very well not have the correct domain associated with it when Swiz initializes.

Parameters

object:Object

Returns
ApplicationDomain
getModuleDomain()method 
public static function getModuleDomain(object:Object):ApplicationDomain

Returns the domain used to load an a module, only if the object supplied is a module. Uses the ModuleManager to find the ApplicationDomain in the associated factory, which is a loader. Unfortunately this appears to be the only trustable method for finding a module's domain.

Parameters

object:Object

Returns
ApplicationDomain