Packagesystem.ioc
Interfacepublic interface IObjectFactory
Implementors ObjectFactory

Describes all methods defines in a factory who implement the inversion of control design pattern.



Public Properties
 PropertyDefined By
  config : ObjectConfig
Determinates the configuration object of the object factory.
IObjectFactory
Public Methods
 MethodDefined By
  
getObject(id:String):*
This method returns an object with the specified id in argument.
IObjectFactory
  
isLazyInit(id:String):Boolean
This method indicates if the specified object definition is lazy init.
IObjectFactory
  
isSingleton(id:String):Boolean
This method defined if the scope of the specified object definition is "singleton".
IObjectFactory
  
removeSingleton(id:String):void
Removes and destroy a singleton in the container.
IObjectFactory
Property Detail
configproperty
config:ObjectConfig

Determinates the configuration object of the object factory.


Implementation
    public function get config():ObjectConfig
    public function set config(value:ObjectConfig):void
Method Detail
getObject()method
public function getObject(id:String):*

This method returns an object with the specified id in argument.

Parameters

id:String — The 'id' of the object to return.

Returns
* — the instance of the object with the id passed in argument.
isLazyInit()method 
public function isLazyInit(id:String):Boolean

This method indicates if the specified object definition is lazy init.

Parameters

id:String — The 'id' of the object definition to check..

Returns
Booleantrue if the specified object definition is lazy init.
isSingleton()method 
public function isSingleton(id:String):Boolean

This method defined if the scope of the specified object definition is "singleton".

Parameters

id:String — 'id' of the object.

Returns
Booleantrue if the object is a singleton.
removeSingleton()method 
public function removeSingleton(id:String):void

Removes and destroy a singleton in the container. Invoke the 'destroy' method of this object is it's define in the IObjectDefinition of this singleton.

Parameters

id:String — The id of the singleton to remove.