Packageorg.springextensions.actionscript.context
Interfacepublic interface IApplicationContext extends IObjectFactory, org.as3commons.stageprocessing.IStageObjectProcessorRegistryAware, IObjectDefinitionRegistryAware, flash.events.IEventDispatcher
Implementors ApplicationContext



Public Properties
 PropertyDefined By
 InheritedapplicationDomain : ApplicationDomain
The ApplicationDomain that is associated with the current IObjectFactory
IObjectFactory
 Inheritedcache : IInstanceCache
[read-only] An IInstanceCache instance used to hold the singletons created by the current IObjectFactory.
IObjectFactory
  childContexts : Vector.<IApplicationContext>
[read-only] Returns a Vector of IApplicationContexts that have been registered as a child of the current IApplicationContext.
IApplicationContext
  definitionProviders : Vector.<IObjectDefinitionsProvider>
[read-only] Returns all the IObjectDefinitionsProviders that have been added to the current IApplicationCntext.
IApplicationContext
 InheriteddependencyInjector : IDependencyInjector
IObjectFactory
 InheritedisReady : Boolean
Returns true when the current IObjectFactory is fully initialized and ready for use.
IObjectFactory
 InheritedobjectDefinitionRegistry : IObjectDefinitionRegistry
IObjectDefinitionRegistryAware
 InheritedobjectDestroyer : IObjectDestroyer
IObjectFactory
  objectFactoryPostProcessors : Vector.<IObjectFactoryPostProcessor>
[read-only] Returns all the IObjectFactoryPostProcessors that have been added to the current IApplicationCntext.
IApplicationContext
 InheritedobjectPostProcessors : Vector.<IObjectPostProcessor>
[read-only]
IObjectFactory
 Inheritedparent : IObjectFactory
Optional parent factory that can be used to create objects that can't be created by the current instance.
IObjectFactory
  propertiesParser : IPropertiesParser
An IPropertiesParser instance that is used to turn textfiles into property key/value pairs.
IApplicationContext
 InheritedpropertiesProvider : IPropertiesProvider
IObjectFactory
 InheritedreferenceResolvers : Vector.<IReferenceResolver>
[read-only]
IObjectFactory
  rootViews : Vector.<DisplayObject>
[read-only]
IApplicationContext
  textFilesLoader : ITextFilesLoader
IApplicationContext
Public Methods
 MethodDefined By
  
IApplicationContext
  
IApplicationContext
  
IApplicationContext
 Inherited
IObjectFactory
 Inherited
IObjectFactory
  
addRootView(rootView:DisplayObject):void
IApplicationContext
 Inherited
canCreate(objectName:String):Boolean
Determines if the current ObjectFactory is able to create the object for the sepcified object name.
IObjectFactory
  
IApplicationContext
 Inherited
createInstance(clazz:Class, constructorArguments:Array = null):*
Creates an instance of the specified Class, wires the instance and returns it.
IObjectFactory
 Inherited
destroyObject(instance:Object):void
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
IObjectFactory
  
load():void
IApplicationContext
  
IApplicationContext
  
removeRootView(rootView:DisplayObject):void
IApplicationContext
 Inherited
resolveReference(reference:*):*
IObjectFactory
 Inherited
resolveReferences(references:Array):Array
IObjectFactory
Property Detail
childContextsproperty
childContexts:Vector.<IApplicationContext>  [read-only]

Returns a Vector of IApplicationContexts that have been registered as a child of the current IApplicationContext.


Implementation
    public function get childContexts():Vector.<IApplicationContext>
definitionProvidersproperty 
definitionProviders:Vector.<IObjectDefinitionsProvider>  [read-only]

Returns all the IObjectDefinitionsProviders that have been added to the current IApplicationCntext.


Implementation
    public function get definitionProviders():Vector.<IObjectDefinitionsProvider>
objectFactoryPostProcessorsproperty 
objectFactoryPostProcessors:Vector.<IObjectFactoryPostProcessor>  [read-only]

Returns all the IObjectFactoryPostProcessors that have been added to the current IApplicationCntext.


Implementation
    public function get objectFactoryPostProcessors():Vector.<IObjectFactoryPostProcessor>
propertiesParserproperty 
propertiesParser:IPropertiesParser

An IPropertiesParser instance that is used to turn textfiles into property key/value pairs.


Implementation
    public function get propertiesParser():IPropertiesParser
    public function set propertiesParser(value:IPropertiesParser):void
rootViewsproperty 
rootViews:Vector.<DisplayObject>  [read-only]


Implementation
    public function get rootViews():Vector.<DisplayObject>
textFilesLoaderproperty 
textFilesLoader:ITextFilesLoader


Implementation
    public function get textFilesLoader():ITextFilesLoader
    public function set textFilesLoader(value:ITextFilesLoader):void
Method Detail
addChildContext()method
public function addChildContext(childContext:IApplicationContext, settings:ContextShareSettings = null):IApplicationContext

Parameters

childContext:IApplicationContext — the childContext
 
settings:ContextShareSettings (default = null) — determines what data the parent context will share with te specified child context

Returns
IApplicationContext
addDefinitionProvider()method 
public function addDefinitionProvider(provider:IObjectDefinitionsProvider):IApplicationContext

Parameters

provider:IObjectDefinitionsProvider

Returns
IApplicationContext
addObjectFactoryPostProcessor()method 
public function addObjectFactoryPostProcessor(objectFactoryPostProcessor:IObjectFactoryPostProcessor):IApplicationContext

Parameters

objectFactoryPostProcessor:IObjectFactoryPostProcessor

Returns
IApplicationContext
addRootView()method 
public function addRootView(rootView:DisplayObject):void

Parameters

rootView:DisplayObject

configure()method 
public function configure(configurationPackage:IConfigurationPackage):IApplicationContext

Parameters

configurationPackage:IConfigurationPackage

Returns
IApplicationContext
load()method 
public function load():void

removeChildContext()method 
public function removeChildContext(childContext:IApplicationContext):IApplicationContext

Parameters

childContext:IApplicationContext

Returns
IApplicationContext
removeRootView()method 
public function removeRootView(rootView:DisplayObject):void

Parameters

rootView:DisplayObject