Pacotemx.modules
Classepublic class ModuleManager
HerançaModuleManager Inheritance Object

The ModuleManager class centrally manages dynamically loaded modules. It maintains a mapping of URLs to modules. A module can exist in a state where it is already loaded (and ready for use), or in a not-loaded-yet state. The ModuleManager dispatches events that indicate module status. Clients can register event handlers and then call the load() method, which dispatches events when the factory is ready (or immediately, if it was already loaded).



Propriedades Públicas
 PropriedadeDefinido por
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Métodos Públicos
 MétodoDefinido por
  
[static] See if the referenced object is associated with (or, in the managed ApplicationDomain of) a known IFlexModuleFactory implementation.
ModuleManager
  
[static] Get the IModuleInfo interface associated with a particular URL.
ModuleManager
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Detalhes do método
getAssociatedFactory()método
public static function getAssociatedFactory(object:Object):IFlexModuleFactory

See if the referenced object is associated with (or, in the managed ApplicationDomain of) a known IFlexModuleFactory implementation.

Parâmetros

object:Object — The object that the ModuleManager tries to create.

Retorna
IFlexModuleFactory — Returns the IFlexModuleFactory implementation, or null if the object type cannot be created from the factory.
getModule()método 
public static function getModule(url:String):IModuleInfo

Get the IModuleInfo interface associated with a particular URL. There is no requirement that this URL successfully load, but the ModuleManager returns a unique IModuleInfo handle for each unique URL.

Parâmetros

url:String — A URL that represents the location of the module.

Retorna
IModuleInfo — The IModuleInfo interface associated with a particular URL.