Method | Defined 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 |
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 |
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 |
ApplicationDomain |