Packageandromeda.ioc.io
Classpublic class XMLResource
InheritanceXMLResource Inheritance ObjectResource Inheritance SimpleValueObject Inheritance CoreObject

This value object contains all information to load an external XML file and create a new object definition in a IoC factory.



Public Properties
 PropertyDefined by
  DEFAULT_PATH : String = ""
[static] The root path of all xml files.
XMLResource
  definition : Object
Indicates the definition object to initialize the ObjectDefinition of the current assembly.
XMLResource
 Inheriteddescription : String
The description of this resource.
ObjectResource
 Inheritedid : *
(read-write) Indicates the id of this IValueObject.
SimpleValueObject
 Inheritedowner : *
The owner reference of this resource.
ObjectResource
  path : String
The optional root path of the xml file.
XMLResource
 Inheritedresource : String
The resource value.
ObjectResource
  singleton : Boolean
Indicates if the object definition of this resource must be a singleton.
XMLResource
 Inheritedtitle : String
The title of this resource.
ObjectResource
 Inheritedtype : String
The type of the resource.
ObjectResource
 Inheritedverbose : Boolean
Indicates the verbose mode of the resource.
ObjectResource
Public Methods
 MethodDefined by
  
XMLResource(init:Object = null)
Creates a new XMLResource instance.
XMLResource
  
Creates a new ActionURLLoader object with the resource.
XMLResource
 Inherited
equals(o:*):Boolean
Compares the specified object with this object for equality.
SimpleValueObject
 Inherited
Returns the internal ILogger reference of this ILogable object.
CoreObject
 Inherited
hashCode():uint
Returns a hashcode value for the object.
CoreObject
  
initialize(... args):void
The optional method invoked when the resource is loading.
XMLResource
 Inherited
setLogger(log:ILogger = null):void
Sets the internal ILogger reference of this ILogable object.
CoreObject
 Inherited
toSource(indent:int = 0):String
Returns the string representation the source code of the object.
CoreObject
 Inherited
toString():String
Returns the String representation of this object.
ObjectResource
Property detail
DEFAULT_PATHproperty
public static var DEFAULT_PATH:String = ""

The root path of all xml files.

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'.

pathproperty 
public var path:String

The optional root path of the xml file.

singletonproperty 
public var singleton:Boolean

Indicates if the object definition of this resource must be a singleton.

Constructor detail
XMLResource()constructor
public function XMLResource(init:Object = null)

Creates a new XMLResource 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
public override function create():CoreActionLoader

Creates a new ActionURLLoader object with the resource.

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

The optional method invoked when the resource is loading.

Parameters
... args

Throws
— if the resource can be initialize.