Packageorg.springextensions.actionscript.ioc.factory.config
SVN browsingIConfigurableObjectFactory.as
FisheyeIConfigurableObjectFactory.as
Interfacepublic interface IConfigurableObjectFactory extends IObjectFactory, IDependencyInjector, flash.events.IEventDispatcher
SubinterfacesIConfigurableListableObjectFactory
ImplementorsAbstractObjectFactory

Defines the methods for configuring object factories.



Public Properties
 PropertyDefined by
 InheritedapplicationDomain : ApplicationDomain
IObjectFactory
 InheritedexplicitSingletonNames : Array
Returns the names of the explicit singleton objects registered in the factory.
IObjectFactory
  numObjectPostProcessors : int
[read-only] Returns the number of object post processors.
IConfigurableObjectFactory
 InheritedobjectDefinitions : Object
A registry of object definitions that describe the way an IObjectFactory will have to create and configure objects.
IObjectFactory
  objectPostProcessors : Array
[read-only] Object post processors to apply when creating objects
IConfigurableObjectFactory
 Inheritedparent : IObjectFactory
Optional parent factory that can be used to create objects that can't be created by the current instance.
IObjectFactory
 Inheritedproperties : Properties
IObjectFactory
  typeConverter : ITypeConverter
The current type converter implementation
IConfigurableObjectFactory
Public Methods
 MethodDefined by
  
addObjectPostProcessor(objectPostProcessor:IObjectPostProcessor):void
Adds the specified IObjectPostProcessor to the current object factory.
IConfigurableObjectFactory
 Inherited
addReferenceResolver(referenceResolver:IReferenceResolver):void
This method adds a reference resolver that will be used to resolve property references.
IObjectFactory
 Inherited
canCreate(objectName:String):Boolean
Determines if the object factory is able to create the object with the given name.
IObjectFactory
 Inherited
clearObjectFromInternalCache(name:String):Object
Removes an object from the internal object definition cache.
IObjectFactory
 Inherited
containsObject(objectName:String):Boolean
Determines if the object factory contains a definition with the given name.
IObjectFactory
 Inherited
createInstance(clazz:Class, constructorArguments:Array = null):*
Creates an instance of the specified Class, wires the instance and returns it.
IObjectFactory
 Inherited
getClassForInstance(object:Object):Class
IObjectFactory
 Inherited
getClassForName(className:String):Class
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
  
getObjectPostProcessors(objectPostProcessorClass:Class):Array
Retrieves the object processors of the specified Class.
IConfigurableObjectFactory
 Inherited
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
 Inherited
isPrototype(objectName:String):Boolean
Determines if the definition with the given name is a prototype.
IObjectFactory
 Inherited
isSingleton(objectName:String):Boolean
Determines if the definition with the given name is a singleton.
IObjectFactory
  
registerCustomEditor(requiredType:Class, propertyEditor:IPropertyEditor):void
Registers a custom property editor.
IConfigurableObjectFactory
  
Removes the specified IObjectPostProcessor from the current object factory.
IConfigurableObjectFactory
 Inherited
resolveReference(property:Object):Object
Resolves a property in an object definition.
IObjectFactory
 Inherited
wire(object:*, objectDefinition:IObjectDefinition = null, objectName:String = null):void
IDependencyInjector
Property detail
numObjectPostProcessorsproperty
numObjectPostProcessors:int  [read-only]

Returns the number of object post processors.

Implementation
    public function get numObjectPostProcessors():int
objectPostProcessorsproperty 
objectPostProcessors:Array  [read-only]

Object post processors to apply when creating objects

Implementation
    public function get objectPostProcessors():Array
typeConverterproperty 
typeConverter:ITypeConverter  [read-write]

The current type converter implementation

The default value is an instance of SimpleTypeConverter.

Implementation
    public function get typeConverter():ITypeConverter
    public function set typeConverter(value:ITypeConverter):void

See also

Method detail
addObjectPostProcessor()method
public function addObjectPostProcessor(objectPostProcessor:IObjectPostProcessor):void

Adds the specified IObjectPostProcessor to the current object factory.

Parameters
objectPostProcessor:IObjectPostProcessor — the object postprocessor to add
getObjectPostProcessors()method 
public function getObjectPostProcessors(objectPostProcessorClass:Class):Array

Retrieves the object processors of the specified Class.

Parameters
objectPostProcessorClass:Class — The specified Class.

Returns
Array
isFactoryObject()method 
public function isFactoryObject(objectName:String):Boolean

Determines if an object is a IFactoryObject implementation.

Parameters
objectName:String — The name of the object that should be tested

Returns
Boolean — true if the corresponding object is an IFactoryObject implementation
registerCustomEditor()method 
public function registerCustomEditor(requiredType:Class, propertyEditor:IPropertyEditor):void

Registers a custom property editor. This method will only have effect if the typeConverter is an implementation of IPropertyEditorRegistry.

Parameters
requiredType:Class — the type of the property
 
propertyEditor:IPropertyEditor — the property editor to register

See also

removeObjectPostProcessor()method 
public function removeObjectPostProcessor(objectPostProcessor:IObjectPostProcessor):void

Removes the specified IObjectPostProcessor from the current object factory.

Parameters
objectPostProcessor:IObjectPostProcessor — the object postprocessor to add