Packagesystem.ioc
Interfacepublic interface IObjectDefinitionContainer
Implementors ObjectDefinitionContainer

This interface creates the dependencies with the definitions.



Public Properties
 PropertyDefined By
  numObjectDefinitions : uint
[read-only] Indicates the numbers of object definitions registered in the container.
IObjectDefinitionContainer
Public Methods
 MethodDefined By
  
Registers a new object definition in the container.
IObjectDefinitionContainer
  
Removes all the object definitions register in the container.
IObjectDefinitionContainer
  
containsObjectDefinition(id:String):Boolean
Returns true if the object defines with the specified id is register in the container.
IObjectDefinitionContainer
  
Returns the IObjectDefinition object register in the container with the specified id.
IObjectDefinitionContainer
  
removeObjectDefinition(name:String):void
Unregisters an object definition in the container.
IObjectDefinitionContainer
Property Detail
numObjectDefinitionsproperty
numObjectDefinitions:uint  [read-only]

Indicates the numbers of object definitions registered in the container.


Implementation
    public function get numObjectDefinitions():uint
Method Detail
addObjectDefinition()method
public function addObjectDefinition(definition:IObjectDefinition):void

Registers a new object definition in the container.

Parameters

definition:IObjectDefinition — The Identifiable ObjectDefinition reference to register in the container.

clearObjectDefinition()method 
public function clearObjectDefinition():void

Removes all the object definitions register in the container.

containsObjectDefinition()method 
public function containsObjectDefinition(id:String):Boolean

Returns true if the object defines with the specified id is register in the container.

Parameters

id:String — The id of the ObjectDefinition to search.

Returns
Booleantrue if the object defines with the specified id is register in the container.
getObjectDefinition()method 
public function getObjectDefinition(id:String):IObjectDefinition

Returns the IObjectDefinition object register in the container with the specified id.

Parameters

id:String — The id of the ObjectDefinition to return.

Returns
IObjectDefinition — the IObjectDefinition object register in the container with the specified id.
removeObjectDefinition()method 
public function removeObjectDefinition(name:String):void

Unregisters an object definition in the container.

Parameters

name:String — The id of the object definition to remove.