Package | mx.core |
Interface | public interface IFlexModuleFactory |
Implementors | SystemManager |
Calling the info()
method is legal immediately after
the complete
event is dispatched.
A well-behaved module dispatches a ready
event when
it is safe to call the create()
method.
Property | Defined By | ||
---|---|---|---|
preloadedRSLs : Dictionary [read-only]
The RSLs loaded by this IFlexModuleFactory before the application
starts. | IFlexModuleFactory |
Method | Defined By | ||
---|---|---|---|
Calls Security.allowDomain() for the SWF associated with this IFlexModuleFactory
plus all the SWFs assocatiated with RSLs preloaded by this IFlexModuleFactory. | IFlexModuleFactory | ||
Calls Security.allowInsecureDomain() for the SWF associated with this IFlexModuleFactory
plus all the SWFs assocatiated with RSLs preLoaded by this IFlexModuleFactory. | IFlexModuleFactory | ||
A factory method that requests
an instance of a definition known to the module. | IFlexModuleFactory | ||
Returns a block of key/value pairs
that hold static data known to the module. | IFlexModuleFactory |
preloadedRSLs | property |
preloadedRSLs:Dictionary
[read-only] The RSLs loaded by this IFlexModuleFactory before the application starts. RSLs loaded by the application are not included in this list. Information about preloadedRSLs is stored in a Dictionary. The key is the RSL's LoaderInfo. The value is the url the RSL was loaded from.
public function get preloadedRSLs():Dictionary
allowDomain | () | method |
public function allowDomain(... domains):void
Calls Security.allowDomain() for the SWF associated with this IFlexModuleFactory plus all the SWFs assocatiated with RSLs preloaded by this IFlexModuleFactory.
Parameters
... domains |
allowInsecureDomain | () | method |
public function allowInsecureDomain(... domains):void
Calls Security.allowInsecureDomain() for the SWF associated with this IFlexModuleFactory plus all the SWFs assocatiated with RSLs preLoaded by this IFlexModuleFactory.
Parameters
... domains |
create | () | method |
public function create(... parameters):Object
A factory method that requests an instance of a definition known to the module.
You can provide an optional set of parameters to let
building factories change what they create based
on the input.
Passing null
indicates that the default
definition is created, if possible.
Parameters
... parameters — An optional list of arguments. You can pass any number
of arguments, which are then stored in an Array called parameters .
|
Object — An instance of the module, or null .
|
info | () | method |
public function info():Object
Returns a block of key/value pairs that hold static data known to the module. This method always succeeds, but can return an empty object.
ReturnsObject — An object containing key/value pairs. Typically, this object
contains information about the module or modules created by this
factory; for example:
return {"description": "This module returns 42."};Other common values in the returned object include the following:
|