Packageorg.springextensions.actionscript.ioc
SVN browsingAutowireMode.as
FisheyeAutowireMode.as
Classpublic class AutowireMode

Enumeration for the autowire types of an object definition.

See also

org.springextensions.actionscript.ioc.IObjectDefinition


Documentation reference: autowiring objects


Public Properties
 PropertyDefined by
  name : String
[read-only] Returns the name of the autowire type.
AutowireMode
Public Methods
 MethodDefined by
  
AutowireMode(name:String)
Creates a new ObjectDefintionAutowire object.
AutowireMode
  
fromName(name:String):AutowireMode
[static]
AutowireMode
  
toString():String
AutowireMode
Public Constants
 ConstantDefined by
  AUTODETECT : AutowireMode
[static] Autowire by constructor or by type depending whether there is a constructor with arguments or not
AutowireMode
  AUTODETECT_NAME : String = "autodetect"
[static]
AutowireMode
  BYNAME : AutowireMode
[static] Autowire unclaimed non simple properties with object having the same name of the properties
AutowireMode
  BYNAME_NAME : String = "byName"
[static]
AutowireMode
  BYTYPE : AutowireMode
[static] Autowire unclaimed non simple properties with objects having the same type
AutowireMode
  BYTYPE_NAME : String = "byType"
[static]
AutowireMode
  CONSTRUCTOR : AutowireMode
[static] Autowire constructor arguments with objects having the same type
AutowireMode
  CONSTRUCTOR_NAME : String = "constructor"
[static]
AutowireMode
  NO : AutowireMode
[static] No autowire on the object
AutowireMode
  NO_NAME : String = "no"
[static] Autowired values
AutowireMode
Property detail
nameproperty
name:String  [read-only]

Returns the name of the autowire type.

Implementation
    public function get name():String
Constructor detail
AutowireMode()constructor
public function AutowireMode(name:String)

Creates a new ObjectDefintionAutowire object. This constructor is only used internally to set up the enum and all calls will fail.

Parameters
name:String — the name of the scope
Method detail
fromName()method
public static function fromName(name:String):AutowireMode

Parameters
name:String

Returns
AutowireMode
toString()method 
public function toString():String

Returns
String
Constant detail
AUTODETECTconstant
public static const AUTODETECT:AutowireMode

Autowire by constructor or by type depending whether there is a constructor with arguments or not

AUTODETECT_NAMEconstant 
public static const AUTODETECT_NAME:String = "autodetect"
BYNAMEconstant 
public static const BYNAME:AutowireMode

Autowire unclaimed non simple properties with object having the same name of the properties

BYNAME_NAMEconstant 
public static const BYNAME_NAME:String = "byName"
BYTYPEconstant 
public static const BYTYPE:AutowireMode

Autowire unclaimed non simple properties with objects having the same type

BYTYPE_NAMEconstant 
public static const BYTYPE_NAME:String = "byType"
CONSTRUCTORconstant 
public static const CONSTRUCTOR:AutowireMode

Autowire constructor arguments with objects having the same type

CONSTRUCTOR_NAMEconstant 
public static const CONSTRUCTOR_NAME:String = "constructor"
NOconstant 
public static const NO:AutowireMode

No autowire on the object

NO_NAMEconstant 
public static const NO_NAME:String = "no"

Autowired values