What I do is to add an addClass method to the FSMInjector. I
then do some reflection on the class ref, and keep the stats. The
addClass ensures the class is included. I will add a link to
illustrate later as I am mobile at the mo.
Thanks for your reply and your code sample.
My point is to save importing command classes when I initialize the
state machine process. All I want to have to do is to create the
command class and reference its path in the XML file.
I don't know if it's a good idea after all. What do you think ?
1) you will have to import your cmds somewhere, otherwise they wont
2) the alternative is to create a command factory
3) You'll also have to map them at some point to the commandMap
( I assume thats what you want to do) surely the best place to map
them is when you initialise the FSM