| Package | system.ioc |
| Interface | public interface IObjectFactory |
| Implementors | ObjectFactory |
| Property | Defined By | ||
|---|---|---|---|
| config : ObjectConfig
Determinates the configuration object of the object factory. | IObjectFactory | ||
| Method | Defined 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 | ||
| config | property |
config:ObjectConfigDeterminates the configuration object of the object factory.
public function get config():ObjectConfig public function set config(value:ObjectConfig):void| 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.
|
* — the instance of the object with the id passed in argument.
|
| isLazyInit | () | method |
public function isLazyInit(id:String):BooleanThis method indicates if the specified object definition is lazy init.
Parameters
id:String — The 'id' of the object definition to check..
|
Boolean — true if the specified object definition is lazy init.
|
| isSingleton | () | method |
public function isSingleton(id:String):BooleanThis method defined if the scope of the specified object definition is "singleton".
Parameters
id:String — 'id' of the object.
|
Boolean — true 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.
|