Packageorg.springextensions.actionscript.ioc.factory
SVN browsingIListableObjectFactory.as
FisheyeIListableObjectFactory.as
Interfacepublic interface IListableObjectFactory extends IObjectFactory, IDependencyInjector, flash.events.IEventDispatcher, IObjectDefinitionRegistry
SubinterfacesIConfigurableListableObjectFactory

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



Documentation reference: instantiating a container


Public Properties
 PropertyDefined by
 InheritedapplicationDomain : ApplicationDomain
IObjectFactory
 InheritedexplicitSingletonNames : Array
Returns the names of the explicit singleton objects registered in the factory.
IObjectFactory
 InheritednumObjectDefinitions : uint
The number of object definitions in this registry.
IObjectDefinitionRegistry
 InheritedobjectDefinitionNames : Array
The names of the registered object definitions.
IObjectDefinitionRegistry
 InheritedobjectDefinitions : Object
A registry of object definitions that describe the way an IObjectFactory will have to create and configure objects.
IObjectFactory
 Inheritedparent : IObjectFactory
Optional parent factory that can be used to create objects that can't be created by the current instance.
IObjectFactory
 Inheritedproperties : Properties
IObjectFactory
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
canCreate(objectName:String):Boolean
Determines if the object factory is able to create the object with the given name.
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
containsObjectDefinition(objectName:String):Boolean
Determines if an object definition with the given name exists
IObjectDefinitionRegistry
 Inherited
createInstance(clazz:Class, constructorArguments:Array = null):*
Creates an instance of the specified Class, wires the instance and returns it.
IObjectFactory
 Inherited
getClassForInstance(object:Object):Class
IObjectFactory
 Inherited
getClassForName(className:String):Class
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
 Inherited
Returns the object definition registered with the given name.
IObjectDefinitionRegistry
 Inherited
getObjectDefinitionsOfType(type:Class):Array
Returns the object definitions in this registry that are of the specified Class.
IObjectDefinitionRegistry
  
getObjectNamesForType(type:Class):Array
Returns the names of all object definitions and explicit singletons in this factory that are of the given type.
IListableObjectFactory
  
getObjectsOfType(type:Class):Object
Returns all object definitions and explicit singletons that are of the given type.
IListableObjectFactory
 Inherited
getType(objectName:String):Class
Returns the type that is defined on the object definition.
IObjectFactory
 Inherited
getUsedTypes():Array
Returns a unique list of all Classes that are used by the IObjectDefinitions in the current IObjectDefinitionRegistry.
IObjectDefinitionRegistry
 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
registerObjectDefinition(objectName:String, objectDefinition:IObjectDefinition):void
Registers the given objectDefinition under the given name.
IObjectDefinitionRegistry
 Inherited
removeObjectDefinition(objectName:String):void
Removes the definition with the given name from the registry
IObjectDefinitionRegistry
 Inherited
resolveReference(property:Object):Object
Resolves a property in an object definition.
IObjectFactory
 Inherited
wire(object:*, objectDefinition:IObjectDefinition = null, objectName:String = null):void
IDependencyInjector
Method detail
getObjectNamesForType()method
public function getObjectNamesForType(type:Class):Array

Returns the names of all object definitions and explicit singletons in this factory that are of the given type.

Parameters
type:Class — The type that is searched for

Returns
Array — an array containing definition names that implement the given type
getObjectsOfType()method 
public function getObjectsOfType(type:Class):Object

Returns all object definitions and explicit singletons that are of the given type.

Parameters
type:Class — the type that is searched for

Returns
Object — An object (hashmap) containing definitions that implement the given type. Definition names are used as key.