| Package | org.springextensions.actionscript.ioc.factory |
| Interface | public interface IListableObjectFactory extends IObjectFactory, flash.events.IEventDispatcher |
| Subinterfaces | IApplicationContext, IConfigurableListableObjectFactory |
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
| Property | Defined 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 | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
addReferenceResolver(referenceResolver:IReferenceResolver):void
This method adds a reference resolver that will be used to resolve property
references.
| IObjectFactory | |
![]() |
clearObjectFromInternalCache(name:String):Object
Removes an object from the internal object definition cache.
| IObjectFactory | |
![]() |
containsObject(objectName:String):Boolean
Determines if the object factory contains a definition with the given name.
| IObjectFactory | |
![]() |
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 | ||
![]() |
getType(objectName:String):Class
Returns the type that is defined on the object definition.
| IObjectFactory | |
![]() |
isPrototype(objectName:String):Boolean
Determines if the definition with the given name is a prototype.
| IObjectFactory | |
![]() |
isSingleton(objectName:String):Boolean
Determines if the definition with the given name is a singleton.
| IObjectFactory | |
![]() |
resolveReference(property:Object):Object
Resolves a property in an object definition.
| IObjectFactory | |
| numObjectDefinitions | property |
numObjectDefinitions:int [read-only]Returns the number of definitions present in the object definition registry
Implementation public function get numObjectDefinitions():int
| objectDefinitionNames | property |
objectDefinitionNames:Array [read-only]Returns an array containing all object definition names.
Implementation public function get objectDefinitionNames():Array
| 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.
type:Class — The type that is searched for
|
Array — an array containing definition names that implement the given type
|
See also
| 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.
type:Class — The type that is searched for
|
Dictionary — A dictionary containing definitions that implement the given type. Definition
names are used as key.
|
See also