Hi Guys ...

today I have a question for you, hoping someone will be able to help me :-)


I am playing around with Parseley 3.0 and am pretty satisfied with it. One 
thing that is bugging me at the moment is the messaging. As long as I use the 
[MessageHandler] Metadata in classes that are managed by parseley by the 
context.mxml all is working fine. Unfortunately I have quite a lot of mxml 
classes using my services by <parseley:Configure/> in the fx:Declaration 
section of the component. Unfortunately I couldn't manage to get Parseley to 
call my handlers. The only option I found was to add an [Init] method and to 
use the Message API to manually register a handler using this code:


var registry:MessageReceiverRegistry = 
context.scopeManager.getScope(ScopeName.GLOBAL).messageReceivers;
var info:MessageReceiverInfo = new MessageReceiverInfo();
info.type = ClassInfo.forClass(ConferenceDataChangedEvent);
var handler:DefaultMessageHandler = new DefaultMessageHandler(info);
handler.init(Provider.forInstance(this), 
ClassInfo.forInstance(this).getMethod("onConferenceDataChanged"));
registry.addTarget(handler);

What do I have to do in order to use the normal MetaData approach?


Or would you completely recommend a different IoT framework? To me it seemed as 
they are all declared dead, so I thought ... "pick your zombie" and Parseley 
looked nicest to mee.


Chris

Reply via email to