Packageorg.pranaframework.ioc.factory.xml
Classpublic class XmlObjectFactory
InheritanceXmlObjectFactory Inheritance DefaultListableObjectFactory Inheritance AbstractObjectFactory Inheritance flash.events.EventDispatcher
ImplementsIXMLObjectFactory
SubclassesXMLApplicationContext

Manages object definitions and creates new objects based on those definitions.



Public Properties
 PropertyDefined by
 InheritedallowObjectDefinitionOverriding : Boolean
DefaultListableObjectFactory
  configLocations : Array
[read-only]
XmlObjectFactory
 InheritednumObjectDefinitions : int
DefaultListableObjectFactory
 InheritednumObjectPostProcessors : int
AbstractObjectFactory
 InheritedobjectDefinitionNames : Array
DefaultListableObjectFactory
 InheritedobjectDefinitions : IMap
AbstractObjectFactory
Public Methods
 MethodDefined by
  
XmlObjectFactory(source:* = null)
Creates a new XmlObjectFactory
XmlObjectFactory
  
addConfigLocation(configLocation:String):void
XmlObjectFactory
 Inherited
addObjectPostProcessor(objectPostProcessor:IObjectPostProcessor):void
Adds an object postprocessor to this container.
AbstractObjectFactory
 Inherited
clearObjectFromInternalCache(name:String):Object
Removes an object from the internal container cache.
AbstractObjectFactory
 Inherited
containsObject(objectName:String):Boolean
AbstractObjectFactory
 Inherited
containsObjectDefinition(objectName:String):Boolean
DefaultListableObjectFactory
 Inherited
getObject(name:String, constructorArguments:Array = null):*
AbstractObjectFactory
 Inherited
DefaultListableObjectFactory
 Inherited
getObjectNamesForType(type:Class):Array
DefaultListableObjectFactory
 Inherited
getObjectsOfType(type:Class):IMap
DefaultListableObjectFactory
 Inherited
getType(objectName:String):Class
AbstractObjectFactory
 Inherited
isFactoryObject(objectName:String):Boolean
AbstractObjectFactory
 Inherited
isPrototype(objectName:String):Boolean
AbstractObjectFactory
 Inherited
isSingleton(objectName:String):Boolean
AbstractObjectFactory
  
load():void
XmlObjectFactory
  
loadConfigLocation(configLocation:String):void
XmlObjectFactory
 Inherited
DefaultListableObjectFactory
 Inherited
registerObjectDefinition(objectName:String, objectDefinition:IObjectDefinition):void
DefaultListableObjectFactory
Protected Methods
 MethodDefined by
  
afterParse():void
Hook method, executed after the xml context is parsed.
XmlObjectFactory
  
beforeParse():void
Hook method, executed before the xml context is parsed.
XmlObjectFactory
Property detail
configLocationsproperty
configLocations:Array  [read-only]Implementation
    public function get configLocations():Array
Constructor detail
XmlObjectFactory()constructor
public function XmlObjectFactory(source:* = null)

Creates a new XmlObjectFactory

Parameters
source:* (default = null) — the path to the xml config file as a String or as an Array
Method detail
addConfigLocation()method
public function addConfigLocation(configLocation:String):voidParameters
configLocation:String
afterParse()method 
protected function afterParse():void

Hook method, executed after the xml context is parsed.

beforeParse()method 
protected function beforeParse():void

Hook method, executed before the xml context is parsed.

load()method 
public function load():void
loadConfigLocation()method 
public function loadConfigLocation(configLocation:String):voidParameters
configLocation:String