| Package | org.springextensions.actionscript.ioc.factory.support |
| SVN browsing | DefaultListableObjectFactory.as |
| Fisheye | DefaultListableObjectFactory.as |
| Class | public class DefaultListableObjectFactory |
| Inheritance | DefaultListableObjectFactory AbstractObjectFactory flash.events.EventDispatcher |
| Implements | IConfigurableListableObjectFactory, IObjectDefinitionRegistry |
| Subclasses | AbstractApplicationContext |
Documentation reference: instantiating a container
| Property | Defined by | ||
|---|---|---|---|
| allowObjectDefinitionOverriding : Boolean [write-only]
Set whether it should be allowed to override object definitions by registering
a different definition with the same name, automatically replacing the former.
| DefaultListableObjectFactory | ||
![]() | applicationDomain : ApplicationDomain | AbstractObjectFactory | |
![]() | autowireProcessor : IAutowireProcessor
| AbstractObjectFactory | |
![]() | explicitSingletonNames : Array
The names of the explicit singletons registered in this factory.
| AbstractObjectFactory | |
| numObjectDefinitions : uint [read-only]
The number of object definitions in this registry.
| DefaultListableObjectFactory | ||
![]() | numObjectPostProcessors : int
Returns the number of object post processors.
| AbstractObjectFactory | |
| objectDefinitionNames : Array [read-only]
The names of the registered object definitions.
| DefaultListableObjectFactory | ||
![]() | objectDefinitions : Object | AbstractObjectFactory | |
![]() | parent : IObjectFactory
| AbstractObjectFactory | |
![]() | properties : Properties | AbstractObjectFactory | |
![]() | typeConverter : ITypeConverter
The current type converter implementation
| AbstractObjectFactory | |
| Method | Defined by | ||
|---|---|---|---|
|
Constructs a new
DefaultListableObjectFactory instance. | DefaultListableObjectFactory | ||
![]() |
addObjectPostProcessor(objectPostProcessor:IObjectPostProcessor):void
If the specified | AbstractObjectFactory | |
![]() |
addReferenceResolver(referenceResolver:IReferenceResolver):void
This method adds a reference resolver that will be used to resolve property
references.
| AbstractObjectFactory | |
![]() |
canCreate(objectName:String):Boolean
Determines if the object factory is able to create the object with the given name.
| AbstractObjectFactory | |
![]() |
clearObjectFromInternalCache(name:String):Object
Removes an object from the internal object definition cache.
| AbstractObjectFactory | |
![]() |
containsObject(objectName:String):Boolean
Determines if the object factory contains a definition with the given name.
| AbstractObjectFactory | |
|
containsObjectDefinition(objectName:String):Boolean
Determines if an object definition with the given name exists
| DefaultListableObjectFactory | ||
![]() |
createInstance(clazz:Class, constructorArguments:Array = null):*
Creates an instance of the specified
Class, wires the instance and returns it. | AbstractObjectFactory | |
![]() |
getClassForInstance(object:Object):Class
| AbstractObjectFactory | |
![]() |
getClassForName(className:String):Class
| AbstractObjectFactory | |
![]() |
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.
| AbstractObjectFactory | |
|
getObjectDefinition(objectName:String):IObjectDefinition
Returns the object definition registered with the given name.
| DefaultListableObjectFactory | ||
|
getObjectNamesForType(type:Class):Array
Returns the names of all object definitions and explicit singletons in this factory that are of
the given type.
| DefaultListableObjectFactory | ||
|
getObjectsOfType(type:Class):Object
Returns all object definitions and explicit singletons that are of the given type.
| DefaultListableObjectFactory | ||
![]() |
getType(objectName:String):Class
Returns the type that is defined on the object definition.
| AbstractObjectFactory | |
![]() |
isFactoryObject(objectName:String):Boolean
Determines if an object is a IFactoryObject implementation.
| AbstractObjectFactory | |
![]() |
isPrototype(objectName:String):Boolean
Determines if the definition with the given name is a prototype.
| AbstractObjectFactory | |
![]() |
isSingleton(objectName:String):Boolean
Determines if the definition with the given name is a singleton.
| AbstractObjectFactory | |
|
preInstantiateSingletons():void
Checks if the objectdefinition is an implementation of | DefaultListableObjectFactory | ||
![]() |
registerCustomEditor(requiredType:Class, propertyEditor:IPropertyEditor):void
Registers a custom property editor.
| AbstractObjectFactory | |
|
registerObjectDefinition(objectName:String, objectDefinition:IObjectDefinition):void
Registers the given objectDefinition under the given name.
| DefaultListableObjectFactory | ||
![]() |
registerSingleton(name:String, object:Object):void
Registers a singleton object in the factory.
| AbstractObjectFactory | |
|
removeObjectDefinition(objectName:String):void
Removes the definition with the given name from the registry
| DefaultListableObjectFactory | ||
![]() |
resolveReference(property:Object):Object
Resolves a property in an object definition.
| AbstractObjectFactory | |
![]() |
wire(object:*, objectDefinition:IObjectDefinition, objectName:String = null):void
| AbstractObjectFactory | |
| allowObjectDefinitionOverriding | property |
allowObjectDefinitionOverriding:Boolean [write-only]Set whether it should be allowed to override object definitions by registering a different definition with the same name, automatically replacing the former. If not, an error will be thrown.
The default value is true.
public function set allowObjectDefinitionOverriding(value:Boolean):void
See also
| numObjectDefinitions | property |
numObjectDefinitions:uint [read-only]The number of object definitions in this registry.
Implementation public function get numObjectDefinitions():uint
| objectDefinitionNames | property |
objectDefinitionNames:Array [read-only]The names of the registered object definitions.
Implementation public function get objectDefinitionNames():Array
| DefaultListableObjectFactory | () | constructor |
public function DefaultListableObjectFactory()
Constructs a new DefaultListableObjectFactory instance.
| containsObjectDefinition | () | method |
public function containsObjectDefinition(objectName:String):BooleanDetermines if an object definition with the given name exists
ParametersobjectName:String — The name/id of the object definition
|
Boolean |
| getObjectDefinition | () | method |
public function getObjectDefinition(objectName:String):IObjectDefinition
Returns the object definition registered with the given name. If the object
definition does not exist undefined will be returned.
objectName:String — the name/id of the definition to retrieve
|
IObjectDefinition —
the registered object definition
|
| 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
|
— if the class for the specified ObjectDefinition isn't found
|
| 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.
|
| preInstantiateSingletons | () | method |
public function preInstantiateSingletons():void
Checks if the objectdefinition is an implementation of IFactoryObject, if so
the factory will be pre-instantiated, not the result of the factory.
| registerObjectDefinition | () | method |
public function registerObjectDefinition(objectName:String, objectDefinition:IObjectDefinition):voidRegisters the given objectDefinition under the given name.
ParametersobjectName:String — the name under which the object definition should be stored
|
|
objectDefinition:IObjectDefinition — the object definition to store
|
| removeObjectDefinition | () | method |
public function removeObjectDefinition(objectName:String):voidRemoves the definition with the given name from the registry
ParametersobjectName:String — The name/id of the definition to remove
|