| Package | org.pranaframework.ioc.factory.config |
| Interface | public interface IConfigurableObjectFactory extends IObjectFactory, flash.events.IEventDispatcher |
| Subinterfaces | IConfigurableListableObjectFactory |
| Implementors | AbstractObjectFactory |
| Property | Defined by | ||
|---|---|---|---|
| numObjectPostProcessors : int [read-only]
Returns the number of object post processors.
| IConfigurableObjectFactory | ||
| typeConverter : ITypeConverter
The current type converter implementation
| IConfigurableObjectFactory | ||
| Method | Defined by | ||
|---|---|---|---|
|
addObjectPostProcessor(objectPostProcessor:IObjectPostProcessor):void
Adds an object postprocessor to this object factory.
| IConfigurableObjectFactory | ||
![]() |
addReferenceResolver(referenceResolver:IReferenceResolver):void
This method adds a reference resolver that will be used to resolve property
references.
| 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 | |
![]() |
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 | |
![]() |
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 | ||
![]() |
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 | |
|
registerCustomEditor(requiredType:Class, propertyEditor:IPropertyEditor):void
Registers a custom property editor.
| IConfigurableObjectFactory | ||
![]() |
resolveReference(property:Object):Object
Resolves a property in an object definition.
| IObjectFactory | |
| numObjectPostProcessors | property |
numObjectPostProcessors:int [read-only]Returns the number of object post processors.
Implementation public function get numObjectPostProcessors():int
| typeConverter | property |
typeConverter:ITypeConverter [read-write]The current type converter implementation
The default value is an instance of SimpleTypeConverter.
public function get typeConverter():ITypeConverter
public function set typeConverter(value:ITypeConverter):void
See also
| addObjectPostProcessor | () | method |
public function addObjectPostProcessor(objectPostProcessor:IObjectPostProcessor):voidAdds an object postprocessor to this object factory.
ParametersobjectPostProcessor:IObjectPostProcessor — the object postprocessor to add
|
| isFactoryObject | () | method |
public function isFactoryObject(objectName:String):BooleanDetermines if an object is a IFactoryObject implementation.
ParametersobjectName:String — The name of the object that should be tested
|
Boolean — true if the corresponding object is an IFactoryObject implementation
|
| registerCustomEditor | () | method |
public function registerCustomEditor(requiredType:Class, propertyEditor:IPropertyEditor):voidRegisters a custom property editor. This method will only have effect if the typeConverter is an implementation of IPropertyEditorRegistry.
ParametersrequiredType:Class — the type of the property
|
|
propertyEditor:IPropertyEditor — the property editor to register
|
See also