| Package | org.springextensions.actionscript.context |
| SVN browsing | IConfigurableApplicationContext.as |
| Fisheye | IConfigurableApplicationContext.as |
| Interface | public interface IConfigurableApplicationContext extends IApplicationContext, IConfigurableListableObjectFactory, IConfigurableObjectFactory, IObjectFactory, IDependencyInjector, flash.events.IEventDispatcher, IListableObjectFactory, IObjectDefinitionRegistry |
| Implementors | AbstractApplicationContext, XMLApplicationContext |
IObjectFactoryPostProcessor instances.
| Property | Defined by | ||
|---|---|---|---|
![]() | applicationDomain : ApplicationDomain | IObjectFactory | |
![]() | displayName : String
A 'friendly' display name for the
IApplicationContext. | IApplicationContext | |
![]() | explicitSingletonNames : Array
Returns the names of the explicit singleton objects registered in the factory.
| IObjectFactory | |
![]() | id : String
A unique id for the current
IApplicationContext. | IApplicationContext | |
![]() | numObjectDefinitions : uint
The number of object definitions in this registry.
| IObjectDefinitionRegistry | |
![]() | numObjectPostProcessors : int
Returns the number of object post processors.
| IConfigurableObjectFactory | |
![]() | objectDefinitionNames : Array
The names of the registered object definitions.
| IObjectDefinitionRegistry | |
![]() | objectDefinitions : Object
A registry of object definitions that describe the way an
IObjectFactory will have to
create and configure objects. | IObjectFactory | |
| objectFactoryPostProcessors : Array [read-only]
The ObjectFactoryPostProcessors defined in this application context.
| IConfigurableApplicationContext | ||
![]() | objectPostProcessors : Array
Object post processors to apply when creating objects
| IConfigurableObjectFactory | |
![]() | parent : IObjectFactory
Optional parent factory that can be used to create objects that can't be created by the current instance.
| IObjectFactory | |
![]() | parentContext : IApplicationContext
Returns the parent application context or
null if no parent is set. | IApplicationContext | |
![]() | properties : Properties | IObjectFactory | |
![]() | typeConverter : ITypeConverter
The current type converter implementation
| IConfigurableObjectFactory | |
| useParentObjectFactoryPostProcessors : Boolean
Whether ObjectFactoryPostProcessor's defined in the parent contexts should be used or not.
| IConfigurableApplicationContext | ||
| Method | Defined by | ||
|---|---|---|---|
|
addObjectFactoryPostProcessor(objectFactoryPostProcessor:IObjectFactoryPostProcessor, index:int = -1):void
Adds an
IObjectFactoryPostProcessor instance to the current XMLApplicationContext
| IConfigurableApplicationContext | ||
![]() |
addObjectPostProcessor(objectPostProcessor:IObjectPostProcessor):void
Adds the specified
IObjectPostProcessor to the current object factory. | IConfigurableObjectFactory | |
![]() |
addReferenceResolver(referenceResolver:IReferenceResolver):void
This method adds a reference resolver that will be used to resolve property
references.
| IObjectFactory | |
![]() |
canCreate(objectName:String):Boolean
Determines if the object factory is able to create the object with the given name.
| 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 | |
![]() |
createInstance(clazz:Class, constructorArguments:Array = null):*
Creates an instance of the specified
Class, wires the instance and returns it. | IObjectFactory | |
![]() |
getClassForInstance(object:Object):Class
| IObjectFactory | |
![]() |
getClassForName(className:String):Class
| 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
Returns the object definition registered with the given name.
| IObjectDefinitionRegistry | |
![]() |
getObjectDefinitionsOfType(type:Class):Array
Returns the object definitions in this registry that are of
the specified
Class. | IObjectDefinitionRegistry | |
![]() |
getObjectNamesForType(type:Class):Array
Returns the names of all object definitions and explicit singletons in this factory that are of
the given type.
| IListableObjectFactory | |
![]() |
getObjectPostProcessors(objectPostProcessorClass:Class):Array
Retrieves the object processors of the specified
Class. | IConfigurableObjectFactory | |
![]() |
getObjectsOfType(type:Class):Object
Returns all object definitions and explicit singletons that are of the given type.
| IListableObjectFactory | |
![]() |
getType(objectName:String):Class
Returns the type that is defined on the object definition.
| IObjectFactory | |
![]() |
getUsedTypes():Array
Returns a unique list of all
Classes that are used by the IObjectDefinitions
in the current IObjectDefinitionRegistry. | IObjectDefinitionRegistry | |
![]() |
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 | |
![]() |
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, objectDefinition:IObjectDefinition):void
Registers the given objectDefinition under the given name.
| IObjectDefinitionRegistry | |
![]() |
registerSingleton(name:String, object:Object):void
Registers a singleton object in the factory.
| IConfigurableListableObjectFactory | |
![]() |
removeObjectDefinition(objectName:String):void
Removes the definition with the given name from the registry
| IObjectDefinitionRegistry | |
![]() |
removeObjectPostProcessor(objectPostProcessor:IObjectPostProcessor):void
Removes the specified
IObjectPostProcessor from the current object factory. | IConfigurableObjectFactory | |
![]() |
resolveReference(property:Object):Object
Resolves a property in an object definition.
| IObjectFactory | |
![]() |
wire(object:*, objectDefinition:IObjectDefinition = null, objectName:String = null):void
| IDependencyInjector | |
| objectFactoryPostProcessors | property |
objectFactoryPostProcessors:Array [read-only]The ObjectFactoryPostProcessors defined in this application context.
Implementation public function get objectFactoryPostProcessors():Array
| useParentObjectFactoryPostProcessors | property |
useParentObjectFactoryPostProcessors:Boolean [read-write]Whether ObjectFactoryPostProcessor's defined in the parent contexts should be used or not. The default is false. Child contexts should set this property to true BEFORE being loaded.
Implementation public function get useParentObjectFactoryPostProcessors():Boolean
public function set useParentObjectFactoryPostProcessors(value:Boolean):void
| addObjectFactoryPostProcessor | () | method |
public function addObjectFactoryPostProcessor(objectFactoryPostProcessor:IObjectFactoryPostProcessor, index:int = -1):void
Adds an IObjectFactoryPostProcessor instance to the current XMLApplicationContext
objectFactoryPostProcessor:IObjectFactoryPostProcessor — An IObjectFactoryPostProcessor instance which is allowed to read the configuration metadata and potentially change it before the container has actually instantiated any other objects.
|
|
index:int (default = -1) — An optional index for the objectFactoryPostProcessor list that the specified IObjectFactoryPostProcessor will be inserted at
|
See also