TiiToo / vegas

Automatically exported from code.google.com/p/vegas
1 stars 0 forks source link

IoC : add the receivers attribute in the object definition #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Like the "listeners" attribute i must implement the receivers attribute to 
connect a receiver of 
functions in the object definitions.

Example to connect a Receiver with one or more signals with the array 
"receivers" in the object 
definitions :

{
    id              : "my_receiver" ,
    type          : "system.signals.Receiver" ,
    singleton : true ,
    lazyInit     : true ,
    receivers  : 
    [ 
        signal : "my_signal" 
    ]
}

or we can connect a receiver function in an object with the attribute slot.

{
    id              : "my_receiver" ,
    type          : "system.signals.Receiver" ,
    singleton : true ,
    lazyInit     : true ,
    receivers  : 
    [ 
        signal : "my_object.signaler" ,  slot : "mySlot" }
    ]
}

I can complete this feature with the before/after values like in the listeners 
attribute.

Original issue reported on code.google.com by ekamel...@gmail.com on 26 Apr 2010 at 7:38

GoogleCodeExporter commented 9 years ago

Original comment by ekamel...@gmail.com on 26 Apr 2010 at 7:39

GoogleCodeExporter commented 9 years ago
Begin to implement the ObjectReceiver class

Original comment by ekamel...@gmail.com on 26 Apr 2010 at 2:05

GoogleCodeExporter commented 9 years ago
fixed in the revision 1638

Original comment by ekamel...@gmail.com on 26 Apr 2010 at 8:44