Packagevegas.ioc.io
Classpublic class ObjectResource
InheritanceObjectResource Inheritance SimpleValueObject Inheritance Object
Subclasses AssemblyResource, ConfigResource, ContextResource, FontResource, LocaleResource, ShaderResource, SoundResource, StyleSheetResource, TextResource, XMLResource

Convenience base class for resource implementations in the IoC factory loader.



Public Properties
 PropertyDefined By
  cache : Boolean
The cache flag of this resource (default is true).
ObjectResource
  data : *
The data object of this resource.
ObjectResource
  enabled : Boolean
A enabled flag of this resource.
ObjectResource
 Inheritedid : *
Indicates the id of this ValueObject.
SimpleValueObject
  owner : *
The owner reference of this resource.
ObjectResource
  resource : String
The resource value.
ObjectResource
  type : String
The type of the resource.
ObjectResource
  verbose : Boolean
Indicates the verbose mode of the resource.
ObjectResource
Public Methods
 MethodDefined By
  
ObjectResource(init:Object = null)
Creates a new ObjectResource instance.
ObjectResource
  
Creates a new ActionURLLoader object with the resource.
ObjectResource
 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
The optional method invoked when the resource is loading.
ObjectResource
 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
  
toString():String
[override] Returns the String representation of this object.
ObjectResource
Property Detail
cacheproperty
public var cache:Boolean

The cache flag of this resource (default is true).

dataproperty 
public var data:*

The data object of this resource.

enabledproperty 
public var enabled:Boolean

A enabled flag of this resource.

ownerproperty 
public var owner:*

The owner reference of this resource.

resourceproperty 
public var resource:String

The resource value.

typeproperty 
public var type:String

The type of the resource.

verboseproperty 
public var verbose:Boolean

Indicates the verbose mode of the resource.

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

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

Creates a new ActionURLLoader object with the resource. Overrides this method.

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

The optional method invoked when the resource is loading. Overrides this method.

Parameters

... args

toString()method 
override public function toString():String

Returns the String representation of this object.

Returns
String — the String representation of this object.