Packageorg.springextensions.actionscript.stage
Classpublic class DefaultObjectDefinitionResolver
InheritanceDefaultObjectDefinitionResolver Inheritance Object
Implements IObjectDefinitionResolver, IApplicationContextAware

Default IObjectDefinitionResolver used for wiring.

Attempt to resolve an IObjectDefinition for the passed object:

  1. Name lookup. Uses objectIdProperty as the object property name to be used to match an object definition (default: "name").
  2. Type lookup. Used if the preceding hasn't find a matching object definition. Will try to find an object definition with the same type of the object (it will assign the object definition only if a single matching object definition is found).
  3. Default object definition. Just assign a default object definition having the object complete class name as id and marked as prototype.

See also

org.springextensions.actionscript.context.support.FlexXMLApplicationContext
FlexStageObjectSelectorFactoryPostProcessor


Public Properties
 PropertyDefined By
  applicationContext : IApplicationContext
DefaultObjectDefinitionResolver
  lookupByType : Boolean
[write-only]
DefaultObjectDefinitionResolver
  objectIdProperty : String
[write-only]
DefaultObjectDefinitionResolver
Public Methods
 MethodDefined By
  
DefaultObjectDefinitionResolver
  
Resolve an IObjectDefinition for an object to be subsequently wired.
DefaultObjectDefinitionResolver
Protected Methods
 MethodDefined By
  
DefaultObjectDefinitionResolver
Property Detail
applicationContextproperty
applicationContext:IApplicationContext


Implementation
    public function get applicationContext():IApplicationContext
    public function set applicationContext(value:IApplicationContext):void
lookupByTypeproperty 
lookupByType:Boolean  [write-only]

The default value is true.


Implementation
    public function set lookupByType(value:Boolean):void
objectIdPropertyproperty 
objectIdProperty:String  [write-only]

The default value is "name".


Implementation
    public function set objectIdProperty(value:String):void
Constructor Detail
DefaultObjectDefinitionResolver()Constructor
public function DefaultObjectDefinitionResolver(applicationContext:IApplicationContext = null)



Parameters
applicationContext:IApplicationContext (default = null)
Method Detail
getObjectDefinitionByName()method
protected function getObjectDefinitionByName(object:*):IObjectDefinition

Parameters

object:*

Returns
IObjectDefinition
resolveObjectDefinition()method 
public function resolveObjectDefinition(object:*):IObjectDefinition

Resolve an IObjectDefinition for an object to be subsequently wired.

Parameters

object:* — The object to be wired.

Returns
IObjectDefinition — the IObjectDefinition to be used to wire the passed object.