Packageorg.springextensions.actionscript.ioc.factory
Interfacepublic interface IListableObjectFactory extends IObjectFactory, flash.events.IEventDispatcher
SubinterfacesIApplicationContext, IConfigurableListableObjectFactory

Provides an object factory with list type methods of accessing defintions.

Authors: Christophe Herreman, Erik Westra
Version: $Revision: 21 $, $Date: 2008-11-01 22:58:42 +0100 (za, 01 nov 2008) $, $Author: dmurat $
Since: 0.1



Public Properties
 PropertyDefined by
  numObjectDefinitions : int
[read-only] Returns the number of definitions present in the object definition registry
IListableObjectFactory
  objectDefinitionNames : Array
[read-only] Returns an array containing all object definition names.
IListableObjectFactory
Public Methods
 MethodDefined by
 Inherited
addReferenceResolver(referenceResolver:IReferenceResolver):void
This method adds a reference resolver that will be used to resolve property references.
IObjectFactory
 Inherited
clearObjectFromInternalCache(name:String):Object
Removes an object from the internal object definition cache.
IObjectFactory
 Inherited
containsObject(objectName:String):Boolean
Determines if the object factory contains a definition with the given name.
IObjectFactory
 Inherited
getObject(name:String, constructorArguments:Array = null):*
Will retrieve an object by it's name/id If the definition is a singleton it will be retrieved from cache if possible.
IObjectFactory
  
getObjectNamesForType(type:Class):Array
Returns all object definitions names that implement the given type.
IListableObjectFactory
  
getObjectsOfType(type:Class):Dictionary
Returns all object definitions that implement the given type.
IListableObjectFactory
 Inherited
getType(objectName:String):Class
Returns the type that is defined on the object definition.
IObjectFactory
 Inherited
isPrototype(objectName:String):Boolean
Determines if the definition with the given name is a prototype.
IObjectFactory
 Inherited
isSingleton(objectName:String):Boolean
Determines if the definition with the given name is a singleton.
IObjectFactory
 Inherited
resolveReference(property:Object):Object
Resolves a property in an object definition.
IObjectFactory
Property detail
numObjectDefinitionsproperty
numObjectDefinitions:int  [read-only]

Returns the number of definitions present in the object definition registry

Implementation
    public function get numObjectDefinitions():int
objectDefinitionNamesproperty 
objectDefinitionNames:Array  [read-only]

Returns an array containing all object definition names.

Implementation
    public function get objectDefinitionNames():Array
Method detail
getObjectNamesForType()method
public function getObjectNamesForType(type:Class):Array

Returns all object definitions names that implement the given type. To check the type, the ClassUtils.isImplementationOf method is used.

Parameters
type:Class — The type that is searched for

Returns
Array — an array containing definition names that implement the given type

See also

org.springextensions.actionscript.utils.ClassUtils..isImplementationOf()
getObjectsOfType()method 
public function getObjectsOfType(type:Class):Dictionary

Returns all object definitions that implement the given type. To check the type, the ClassUtils.isImplementationOf method is used.

Parameters
type:Class — The type that is searched for

Returns
Dictionary — A dictionary containing definitions that implement the given type. Definition names are used as key.

See also

org.springextensions.actionscript.utils.ClassUtils..isImplementationOf()