Packageorg.springextensions.actionscript.ioc.factory.support.referenceresolvers
SVN browsingObjectReferenceResolver.as
FisheyeObjectReferenceResolver.as
Classpublic class ObjectReferenceResolver
InheritanceObjectReferenceResolver Inheritance AbstractReferenceResolver

Resolves IObjectReference references.



Protected Properties
 PropertyDefined by
 Inheritedfactory : IObjectFactory
Contains a reference to the implementation of IObjectFactory given to the constructor
AbstractReferenceResolver
Public Methods
 MethodDefined by
  
Constructs ObjectReferenceResolver.
ObjectReferenceResolver
  
canResolve(property:Object):Boolean
Checks if the object is a IObjectReference

Indicates if the given property can be resolved by this reference resolver

ObjectReferenceResolver
  
resolve(property:Object):Object

If the specified objectName is "this" the object factory will be returned.

Resolves all references of IObjectReference contained within the given property.
ObjectReferenceResolver
Constructor detail
ObjectReferenceResolver()constructor
public function ObjectReferenceResolver(factory:IObjectFactory)

Constructs ObjectReferenceResolver.

Parameters
factory:IObjectFactory — The factory that uses this reference resolver
Method detail
canResolve()method
public override function canResolve(property:Object):Boolean

Checks if the object is a IObjectReference

Indicates if the given property can be resolved by this reference resolver

Parameters
property:Object — The property to check

Returns
Boolean — true if this reference resolver can process the given property

See also

resolve()method 
public override function resolve(property:Object):Object

If the specified objectName is "this" the object factory will be returned.

Resolves all references of IObjectReference contained within the given property. Parameters
property:Object — The property to resolve

Returns
Object — The property with all references resolved