| Package | org.springextensions.actionscript.context |
| Interface | public interface IApplicationContext extends IObjectFactory, org.as3commons.stageprocessing.IStageObjectProcessorRegistryAware, IObjectDefinitionRegistryAware, flash.events.IEventDispatcher |
| Implementors | ApplicationContext |
| Property | Defined By | ||
|---|---|---|---|
![]() | applicationDomain : ApplicationDomain
The ApplicationDomain that is associated with the current IObjectFactory
| IObjectFactory | |
![]() | cache : 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 | ||
![]() | dependencyInjector : IDependencyInjector | IObjectFactory | |
![]() | isReady : Boolean
Returns true when the current IObjectFactory is fully initialized and ready for use. | IObjectFactory | |
![]() | objectDefinitionRegistry : IObjectDefinitionRegistry | IObjectDefinitionRegistryAware | |
![]() | objectDestroyer : IObjectDestroyer | IObjectFactory | |
| objectFactoryPostProcessors : Vector.<IObjectFactoryPostProcessor> [read-only]
Returns all the IObjectFactoryPostProcessors that have been added to the current IApplicationCntext. | IApplicationContext | ||
![]() | objectPostProcessors : Vector.<IObjectPostProcessor> [read-only]
| IObjectFactory | |
![]() | parent : 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 | ||
![]() | propertiesProvider : IPropertiesProvider | IObjectFactory | |
![]() | referenceResolvers : Vector.<IReferenceResolver> [read-only]
| IObjectFactory | |
| rootViews : Vector.<DisplayObject> [read-only]
| IApplicationContext | ||
| textFilesLoader : ITextFilesLoader | IApplicationContext | ||
| Method | Defined By | ||
|---|---|---|---|
addChildContext(childContext:IApplicationContext, settings:ContextShareSettings = null):IApplicationContext | IApplicationContext | ||
| IApplicationContext | |||
addObjectFactoryPostProcessor(objectFactoryPostProcessor:IObjectFactoryPostProcessor):IApplicationContext | IApplicationContext | ||
![]() | IObjectFactory | ||
![]() | IObjectFactory | ||
addRootView(rootView:DisplayObject):void | IApplicationContext | ||
![]() | canCreate(objectName:String):Boolean
Determines if the current ObjectFactory is able to create the object for the sepcified object name. | IObjectFactory | |
| IApplicationContext | |||
![]() | createInstance(clazz:Class, constructorArguments:Array = null):*
Creates an instance of the specified Class, wires the instance and returns it. | IObjectFactory | |
![]() | destroyObject(instance:Object):void | 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 | IObjectFactory | |
load():void | IApplicationContext | ||
| IApplicationContext | |||
removeRootView(rootView:DisplayObject):void | IApplicationContext | ||
![]() | resolveReference(reference:*):* | IObjectFactory | |
![]() | resolveReferences(references:Array):Array | IObjectFactory | |
| childContexts | property |
childContexts:Vector.<IApplicationContext> [read-only]
Returns a Vector of IApplicationContexts that have been registered as a child of the current IApplicationContext.
public function get childContexts():Vector.<IApplicationContext>| definitionProviders | property |
definitionProviders:Vector.<IObjectDefinitionsProvider> [read-only]
Returns all the IObjectDefinitionsProviders that have been added to the current IApplicationCntext.
public function get definitionProviders():Vector.<IObjectDefinitionsProvider>| objectFactoryPostProcessors | property |
objectFactoryPostProcessors:Vector.<IObjectFactoryPostProcessor> [read-only]
Returns all the IObjectFactoryPostProcessors that have been added to the current IApplicationCntext.
public function get objectFactoryPostProcessors():Vector.<IObjectFactoryPostProcessor>| propertiesParser | property |
propertiesParser:IPropertiesParser
An IPropertiesParser instance that is used to turn textfiles into property key/value pairs.
public function get propertiesParser():IPropertiesParser public function set propertiesParser(value:IPropertiesParser):void| rootViews | property |
rootViews:Vector.<DisplayObject> [read-only]
public function get rootViews():Vector.<DisplayObject>| textFilesLoader | property |
textFilesLoader:ITextFilesLoader
public function get textFilesLoader():ITextFilesLoader public function set textFilesLoader(value:ITextFilesLoader):void| 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
|
IApplicationContext — |
| addDefinitionProvider | () | method |
public function addDefinitionProvider(provider:IObjectDefinitionsProvider):IApplicationContext
Parameters
provider:IObjectDefinitionsProvider |
IApplicationContext |
| addObjectFactoryPostProcessor | () | method |
public function addObjectFactoryPostProcessor(objectFactoryPostProcessor:IObjectFactoryPostProcessor):IApplicationContext
Parameters
objectFactoryPostProcessor:IObjectFactoryPostProcessor |
IApplicationContext |
| addRootView | () | method |
public function addRootView(rootView:DisplayObject):void
Parameters
rootView:DisplayObject |
| configure | () | method |
public function configure(configurationPackage:IConfigurationPackage):IApplicationContext
Parameters
configurationPackage:IConfigurationPackage |
IApplicationContext |
| load | () | method |
public function load():void
| removeChildContext | () | method |
public function removeChildContext(childContext:IApplicationContext):IApplicationContext
Parameters
childContext:IApplicationContext |
IApplicationContext — |
| removeRootView | () | method |
public function removeRootView(rootView:DisplayObject):void
Parameters
rootView:DisplayObject |