| Package | org.springextensions.actionscript.ioc.factory |
| SVN browsing | IListableObjectFactory.as |
| Fisheye | IListableObjectFactory.as |
| Interface | public interface IListableObjectFactory extends IObjectFactory, IDependencyInjector, flash.events.IEventDispatcher, IObjectDefinitionRegistry |
| Subinterfaces | IConfigurableListableObjectFactory |
Documentation reference: instantiating a container
| Method | Defined by | ||
|---|---|---|---|
![]() |
addReferenceResolver(referenceResolver:IReferenceResolver):void
This method adds a reference resolver that will be used to resolve property
references.
| IObjectFactory | |
![]() |
canCreate(objectName:String):Boolean
Determines if the object factory is able to create the object with the given name.
| 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 | |
![]() |
containsObjectDefinition(objectName:String):Boolean
Determines if an object definition with the given name exists
| IObjectDefinitionRegistry | |
![]() |
createInstance(clazz:Class, constructorArguments:Array = null):*
Creates an instance of the specified
Class, wires the instance and returns it. | IObjectFactory | |
![]() |
getClassForInstance(object:Object):Class
| IObjectFactory | |
![]() |
getClassForName(className:String):Class
| 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 | |
![]() |
getObjectDefinition(objectName:String):IObjectDefinition
Returns the object definition registered with the given name.
| IObjectDefinitionRegistry | |
![]() |
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 | ||
![]() |
getType(objectName:String):Class
Returns the type that is defined on the object definition.
| IObjectFactory | |
![]() |
getUsedTypes():Array
Returns a unique list of all
Classes that are used by the IObjectDefinitions
in the current IObjectDefinitionRegistry. | IObjectDefinitionRegistry | |
![]() |
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 | |
![]() |
registerObjectDefinition(objectName:String, objectDefinition:IObjectDefinition):void
Registers the given objectDefinition under the given name.
| IObjectDefinitionRegistry | |
![]() |
removeObjectDefinition(objectName:String):void
Removes the definition with the given name from the registry
| IObjectDefinitionRegistry | |
![]() |
resolveReference(property:Object):Object
Resolves a property in an object definition.
| IObjectFactory | |
![]() |
wire(object:*, objectDefinition:IObjectDefinition = null, objectName:String = null):void
| IDependencyInjector | |
| getObjectNamesForType | () | method |
public function getObjectNamesForType(type:Class):ArrayReturns the names of all object definitions and explicit singletons in this factory that are of the given type.
Parameterstype:Class — The type that is searched for
|
Array — an array containing definition names that implement the given type
|
| getObjectsOfType | () | method |
public function getObjectsOfType(type:Class):ObjectReturns all object definitions and explicit singletons that are of the given type.
Parameterstype:Class — the type that is searched for
|
Object — An object (hashmap) containing definitions that implement the given type. Definition
names are used as key.
|