Packagevegas.ioc.io
Classpublic class AssemblyResource
InheritanceAssemblyResource Inheritance ObjectResource Inheritance SimpleValueObject Inheritance Object

This value object contains all information about a dll to load in the application.



Public Properties
 PropertyDefined By
 Inheritedcache : Boolean
The cache flag of this resource (default is true).
ObjectResource
  checkPolicyFile : Boolean
Indicates if the assembly must check a policy file in the server of the external library to load.
AssemblyResource
 Inheriteddata : *
The data object of this resource.
ObjectResource
  DEFAULT_CLASS_NAME : String = flash.display.DisplayObject
[static] The default class name of the object definition if the id of the assembly is not 'null' or 'undefined'.
AssemblyResource
  DEFAULT_LOADER : Class
[static] The default Loader class use in all AssemblyResource to create a new resource process.
AssemblyResource
  DEFAULT_PATH : String
[static] The root path of all assembly resources.
AssemblyResource
  definition : Object
Indicates the definition object to initialize the ObjectDefinition of the current assembly.
AssemblyResource
  delay : Number
Indicates the delay of the timeout notification of the internal loader of this resource if the timeoutPolicy is "limit".
AssemblyResource
  domain : String
Indicates if the assembly is loading in the current domain or a specific ApplicationDomain (default "current").
AssemblyResource
 Inheritedenabled : Boolean
A enabled flag of this resource.
ObjectResource
 Inheritedid : *
Indicates the id of this ValueObject.
SimpleValueObject
  loader : *
The loader to use to load the assembly.
AssemblyResource
 Inheritedowner : *
The owner reference of this resource.
ObjectResource
  path : String
The optional root path of the assembly.
AssemblyResource
 Inheritedresource : String
The resource value.
ObjectResource
  timeoutPolicy : TimeoutPolicy
Indicates the timeout policy of the loader (TimeoutPolicy.LIMIT (default) or TimeoutPolicy.INFINITY).
AssemblyResource
 Inheritedtype : String
The type of the resource.
ObjectResource
 Inheritedverbose : Boolean
Indicates the verbose mode of the resource.
ObjectResource
Public Methods
 MethodDefined By
  
AssemblyResource(init:Object = null)
Creates a new AssemblyResource instance.
AssemblyResource
  
[override] Creates a new ActionURLLoader object with the resource.
AssemblyResource
 Inherited
equals(o:*):Boolean
Compares the specified object with this object for equality.
SimpleValueObject
 Inherited
formatToString(className:String = null, ... args):String
A utility function for implementing the toString() method.
SimpleValueObject
  
initialize(... args):void
[override] The optional method invoked when the resource is loading.
AssemblyResource
  
register(type:String = assembly):void
[static] Registers the resource in the ObjectResourceBuilder.
AssemblyResource
 Inherited
toObject():Object
Returns the Object representation of this object.
SimpleValueObject
 Inherited
toSource(indent:int = 0):String
Returns the source code string representation of the object.
SimpleValueObject
 Inherited
toString():String
[override] Returns the String representation of this object.
ObjectResource
Property Detail
checkPolicyFileproperty
public var checkPolicyFile:Boolean

Indicates if the assembly must check a policy file in the server of the external library to load.

DEFAULT_CLASS_NAMEproperty 
public static var DEFAULT_CLASS_NAME:String = flash.display.DisplayObject

The default class name of the object definition if the id of the assembly is not 'null' or 'undefined'.

DEFAULT_LOADERproperty 
public static var DEFAULT_LOADER:Class

The default Loader class use in all AssemblyResource to create a new resource process.

DEFAULT_PATHproperty 
public static var DEFAULT_PATH:String

The root path of all assembly resources.

definitionproperty 
public var definition:Object

Indicates the definition object to initialize the ObjectDefinition of the current assembly. Use this attribute only if the 'id' of the assembly resource is not 'null' or 'undefined'.

delayproperty 
public var delay:Number

Indicates the delay of the timeout notification of the internal loader of this resource if the timeoutPolicy is "limit". If the delay property is NaN the internal loader use this default delay value.

See also

domainproperty 
domain:String

Indicates if the assembly is loading in the current domain or a specific ApplicationDomain (default "current").


Implementation
    public function get domain():String
    public function set domain(value:String):void
loaderproperty 
public var loader:*

The loader to use to load the assembly.

pathproperty 
public var path:String

The optional root path of the assembly.

timeoutPolicyproperty 
public var timeoutPolicy:TimeoutPolicy

Indicates the timeout policy of the loader (TimeoutPolicy.LIMIT (default) or TimeoutPolicy.INFINITY).

Constructor Detail
AssemblyResource()Constructor
public function AssemblyResource(init:Object = null)

Creates a new AssemblyResource instance.

Parameters
init:Object (default = null) — A generic object containing properties with which to populate the newly instance. If this argument is null, it is ignored.
Method Detail
create()method
override public function create():CoreActionLoader

Creates a new ActionURLLoader object with the resource.

Returns
CoreActionLoader
initialize()method 
override public function initialize(... args):void

The optional method invoked when the resource is loading.

Parameters

... args

register()method 
public static function register(type:String = assembly):void

Registers the resource in the ObjectResourceBuilder.

Parameters

type:String (default = assembly)