Packageorg.spicefactory.parsley.object
Classpublic class ObjectReferenceTag
InheritanceObjectReferenceTag Inheritance Object
Implements NestedConfigurationElement
Subclasses PropertyTag

Represents a reference to another object in the container (either by id or by type) in MXML or XML configuration. The idRef and typeRef properties are mutually exclusive.



Public Properties
 PropertyDefined By
  idRef : String
The id of the referenced object.
ObjectReferenceTag
  required : Boolean = true
Indicates whether this instance represents a required dependency.
ObjectReferenceTag
  typeRef : Class
The type of the referenced object.
ObjectReferenceTag
Public Methods
 MethodDefined By
  
Returns the resolved value represented by this element.
ObjectReferenceTag
Property Detail
idRefproperty
public var idRef:String

The id of the referenced object.

requiredproperty 
public var required:Boolean = true

Indicates whether this instance represents a required dependency.

typeRefproperty 
public var typeRef:Class

The type of the referenced object.

Method Detail
resolve()method
public function resolve(registry:ObjectDefinitionRegistry):Object

Returns the resolved value represented by this element.

Parameters

registry:ObjectDefinitionRegistry — the registry associated with this element

Returns
Object — the resolved value represented by this element