Packagecom.bourre.ioc.assembler.constructor
Classpublic class ConstructorExpert
InheritanceConstructorExpert Inheritance AbstractLocator

Player version: Flash Player 9.0
Language version: ActionScript 3.0

The ConstructorExpert class is a locator for Constructor object.

See also

Constructor


Protected Properties
 PropertyDefined by
 Inherited_m : HashMap
Map storing String keys associated with Object values.
AbstractLocator
Public Methods
 MethodDefined by
 Inherited
add(d:Dictionary):void
Adds all ressources contained in the passed-in dictionnary into this locator instance.
AbstractLocator
 Inherited
addEventListener(type:String, listener:Object, ... rest):Boolean
Adds an event listener for the specified event type.
AbstractLocator
  
addListener(listener:Object):Boolean
Adds the passed-in listener as listener for all events dispatched by this event broadcaster.
ConstructorExpert
  
ConstructorExpert
  
buildObject(id:String):void
ConstructorExpert
 Inherited
callMethodOnAllValues(methodName:String, ... args):void
Takes all values of a Locator and call on each value the method name passed as 1st argument.
AbstractLocator
  
[static] Returns the unique ConstructorExpert instance.
ConstructorExpert
 Inherited
getKeys():Array
Returns an Array view of the keys contained in this locator.
AbstractLocator
 Inherited
Returns the exclusive logger object owned by this locator.
AbstractLocator
 Inherited
getType():Class
Return the class type of elements in this container.
AbstractLocator
 Inherited
getValues():Array
Returns an Array view of the values contained in this locator.
AbstractLocator
 Inherited
isRegistered(name:String):Boolean
Returns true is there is a ressource associated with the passed-in key.
AbstractLocator
 Inherited
isTyped():Boolean
Returns true if this container perform a verification of the type of elements.
AbstractLocator
 Inherited
locate(name:String):Object
Returns the ressource associated with the passed-in key.
AbstractLocator
 Inherited
matchType(o:*):Boolean
Verify that the passed-in object type match the current container element's type.
AbstractLocator
 Inherited
processOnAllValues(f:Function, ... args):void
Takes all values of a Locator and pass them one by one as arguments to a method of an object.
AbstractLocator
 Inherited
register(name:String, o:Object):Boolean
Registers passed-in object with identifier name to this locator.
AbstractLocator
  
release():void
[static] Releases singleton.
ConstructorExpert
 Inherited
removeEventListener(type:String, listener:Object):Boolean
Removes the passed-in listener for listening the specified event.
AbstractLocator
  
removeListener(listener:Object):Boolean
Removes the passed-in listener object from this event broadcaster.
ConstructorExpert
 Inherited
toString():String
Returns the string representation of this instance.
AbstractLocator
 Inherited
unregister(name:String):Boolean
Unregisters object registered with identifier name.
AbstractLocator
Protected Methods
 MethodDefined by
 Inherited
broadcastEvent(e:Event):void
Broadcast the passed-in event object to listeners according to the event's type.
AbstractLocator
 Inherited
Returns event Broadcaster owned by this locator.
AbstractLocator
  
onRegister(id:String = null, constructor:Object = null):void
Dispatches ConstructorEvent event using passed-in arguments as event properties when a Constructor is registered in locator.
ConstructorExpert
  
onUnregister(id:String = null):void
Dispatches ConstructorEvent event using passed-in arguments as event properties when a Constructor is unregistered from locator.
ConstructorExpert
Events
 EventSummaryDefined by
   Dispatched when a constructor is registered.ConstructorExpert
   Dispatched when a constructor is unregistered.ConstructorExpert
Method detail
addListener()method
public function addListener(listener:Object):Boolean

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Adds the passed-in listener as listener for all events dispatched by this event broadcaster. The function returns true if the listener have been added at the end of the call. If the listener is already registered in this event broadcaster the function returns false.

Note : The addListener function doesn't accept functions as listener, functions could only register for a single event.

Parameters
listener:Object — the listener object to add as global listener

Returns
Booleantrue if the listener have been added during this call
buildAllObjects()method 
public function buildAllObjects():void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

buildObject()method 
public function buildObject(id:String):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Parameters
id:String
getInstance()method 
public static function getInstance():ConstructorExpert

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Returns the unique ConstructorExpert instance.

Returns
ConstructorExpert — The unique ConstructorExpert instance.
onRegister()method 
protected override function onRegister(id:String = null, constructor:Object = null):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Dispatches ConstructorEvent event using passed-in arguments as event properties when a Constructor is registered in locator.

Event type is ConstructorEvent.onRegisterConstructorEVENT

Parameters
id:String (default = null) — Name of the registered Constructor
 
constructor:Object (default = null) — The registered Constructor

See also

onUnregister()method 
protected override function onUnregister(id:String = null):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Dispatches ConstructorEvent event using passed-in arguments as event properties when a Constructor is unregistered from locator.

Event type is ConstructorEvent.onUnregisterConstructorEVENT

Parameters
id:String (default = null) — Name of the registredred Constructor

See also

release()method 
public static function release():void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Releases singleton.

removeListener()method 
public function removeListener(listener:Object):Boolean

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Removes the passed-in listener object from this event broadcaster. The object is removed as listener for all events the broadcaster may dispatch.

Parameters
listener:Object — the listener object to remove from this event broadcaster object

Returns
Booleantrue if the object have been successfully removed from this event broadcaster
Event detail
onRegisterConstructorevent 
Event object type: com.bourre.ioc.assembler.constructor.ConstructorEvent

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Dispatched when a constructor is registered.

onUnregisterConstructorevent  
Event object type: com.bourre.ioc.assembler.constructor.ConstructorEvent

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Dispatched when a constructor is unregistered.