| Package | org.springextensions.actionscript.ioc.factory.xml |
| Interface | public interface IXMLObjectFactory extends IConfigurableListableObjectFactory, IConfigurableObjectFactory, IObjectFactory, flash.events.IEventDispatcher, IListableObjectFactory, IObjectDefinitionRegistry |
| Implementors | XMLObjectFactory |
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 | ||
|---|---|---|---|
![]() | allowObjectDefinitionOverriding : Boolean
Whether to allow re-registration of a different definition with the same name
| IObjectDefinitionRegistry | |
| configLocations : Array [read-only]
Returns an array of configuration locations.
| IXMLObjectFactory | ||
![]() | numObjectDefinitions : int
Returns the number of definitions present in the object definition registry
| IListableObjectFactory | |
![]() | numObjectPostProcessors : int
Returns the number of object post processors.
| IConfigurableObjectFactory | |
![]() | objectDefinitionNames : Array
Returns an array containing all object definition names.
| IListableObjectFactory | |
![]() | typeConverter : ITypeConverter
The current type converter implementation
| IConfigurableObjectFactory | |
| Method | Defined by | ||
|---|---|---|---|
|
addConfig(config:XML):void
Use this method to add xml versions of configurations
| IXMLObjectFactory | ||
|
addConfigLocation(configLocation:String):void
Use this method to add aditional configuration locations.
| IXMLObjectFactory | ||
|
addEmbeddedConfig(config:Class):void
Adds an embedded config.
| IXMLObjectFactory | ||
![]() |
addObjectPostProcessor(objectPostProcessor:IObjectPostProcessor):void
Adds an object postprocessor to this object factory.
| IConfigurableObjectFactory | |
![]() |
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 | |
![]() |
containsObjectDefinition(objectName:String):Boolean
Determines if an object definition with the given name exists
| IObjectDefinitionRegistry | |
![]() |
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 | |
![]() |
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 | |
![]() |
isFactoryObject(objectName:String):Boolean
Determines if an object is a IFactoryObject implementation.
| IConfigurableObjectFactory | |
![]() |
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 | |
|
load():void
Instructs the object factory to start loading the available configuration(s)
| IXMLObjectFactory | ||
![]() |
preInstantiateSingletons():void
Instantiates all definitions that are defined as singleton and are not lazy.
| IConfigurableListableObjectFactory | |
![]() |
registerCustomEditor(requiredType:Class, propertyEditor:IPropertyEditor):void
Registers a custom property editor.
| IConfigurableObjectFactory | |
![]() |
registerObjectDefinition(objectName:String, obectDefinition:IObjectDefinition):void
Will register the given objectDefinition with 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 | |
| configLocations | property |
configLocations:Array [read-only]Returns an array of configuration locations.
Implementation public function get configLocations():Array
| addConfig | () | method |
public function addConfig(config:XML):voidUse this method to add xml versions of configurations
Parametersconfig:XML — The xml configuration to add
|
| addConfigLocation | () | method |
public function addConfigLocation(configLocation:String):voidUse this method to add aditional configuration locations.
ParametersconfigLocation:String — The location to add. This is the path to the configuration xml file
|
| addEmbeddedConfig | () | method |
public function addEmbeddedConfig(config:Class):voidAdds an embedded config.
Parametersconfig:Class |
| load | () | method |
public function load():voidInstructs the object factory to start loading the available configuration(s)