Packageorg.swizframework.metadata
Classpublic class InjectMetadataTag
InheritanceInjectMetadataTag Inheritance BaseMetadataTag Inheritance Object

Class to represent [Inject] metadata tags.



Public Properties
 PropertyDefined By
 Inheritedargs : Array
Array of arguments defined in the tag.
BaseMetadataTag
 InheritedasTag : String
[read-only] String showing what this tag looks like in code.
BaseMetadataTag
  bind : Boolean
[read-only] Returns bind attribute of [Inject] tag as a Boolean value.
InjectMetadataTag
 InheriteddefaultArgName : String
Name that will be assumed/used when a default argument value is provided, e.g.
BaseMetadataTag
  destination : String
[read-only] Returns destination attribute of [Inject] tag.
InjectMetadataTag
 Inheritedhost : IMetadataHost
Element (class, method or property) on which the metadata tag is defined.
BaseMetadataTag
 Inheritedname : String
Name of the tag, e.g.
BaseMetadataTag
  required : Boolean
[read-only] Returns required attribute of [Inject] tag as a Boolean value.
InjectMetadataTag
  source : String
Returns source attribute of [Inject] tag.
InjectMetadataTag
  twoWay : Boolean
[read-only] Returns twoWay attribute of [Inject] tag as a Boolean value.
InjectMetadataTag
Protected Properties
 PropertyDefined By
 Inherited_args : Array
Backing variable for args property.
BaseMetadataTag
  _bind : Boolean = false
Backing variable for read-only bind property.
InjectMetadataTag
 Inherited_defaultArgName : String
Backing variable for defaultArgName property.
BaseMetadataTag
  _destination : String
Backing variable for read-only destination property.
InjectMetadataTag
 Inherited_host : IMetadataHost
Backing variable for host property.
BaseMetadataTag
  logger : SwizLogger
InjectMetadataTag
 Inherited_name : String
Backing variable for name property.
BaseMetadataTag
  _required : Boolean = true
Backing variable for read-only required property.
InjectMetadataTag
  _source : String
Backing variable for read-only source property.
InjectMetadataTag
  _twoWay : Boolean = false
Backing variable for read-only twoWay property.
InjectMetadataTag
Public Methods
 MethodDefined By
  
Constructor sets defaultArgName.
InjectMetadataTag
  
copyFrom(metadataTag:IMetadataTag):void
[override]
InjectMetadataTag
 Inherited
getArg(argName:String):MetadataArg
BaseMetadataTag
 Inherited
hasArg(argName:String):Boolean
BaseMetadataTag
 Inherited
toString():String
Utility method useful for development and debugging that returns string showing what this tag looked like defined in code.
BaseMetadataTag
Property Detail
_bindproperty
protected var _bind:Boolean = false

Backing variable for read-only bind property.

_destinationproperty 
protected var _destination:String

Backing variable for read-only destination property.

_requiredproperty 
protected var _required:Boolean = true

Backing variable for read-only required property.

_sourceproperty 
protected var _source:String

Backing variable for read-only source property.

_twoWayproperty 
protected var _twoWay:Boolean = false

Backing variable for read-only twoWay property.

bindproperty 
bind:Boolean  [read-only]

Returns bind attribute of [Inject] tag as a Boolean value. If true will cause a binding to be established.

The default value is false.


Implementation
    public function get bind():Boolean
destinationproperty 
destination:String  [read-only]

Returns destination attribute of [Inject] tag. Refers to the injection target.


Implementation
    public function get destination():String
loggerproperty 
protected var logger:SwizLogger

requiredproperty 
required:Boolean  [read-only]

Returns required attribute of [Inject] tag as a Boolean value. If true Swiz will throw an error if it fails to fill this dependency.

The default value is true.


Implementation
    public function get required():Boolean
sourceproperty 
source:String

Returns source attribute of [Inject] tag. Refers to the source to be used for injection. Is the default attribute, meaning [Inject( "someModel" )] is equivalent to [Inject( source="someModel" )].


Implementation
    public function get source():String
    public function set source(value:String):void
twoWayproperty 
twoWay:Boolean  [read-only]

Returns twoWay attribute of [Inject] tag as a Boolean value. If true will cause a two way binding to be established.

The default value is false.


Implementation
    public function get twoWay():Boolean
Constructor Detail
InjectMetadataTag()Constructor
public function InjectMetadataTag()

Constructor sets defaultArgName.

Method Detail
copyFrom()method
override public function copyFrom(metadataTag:IMetadataTag):void

Parameters

metadataTag:IMetadataTag