I have a requirement to develop an engine which would allow adding some templates without re-compiling the main engine code. I want to allow vendors to create template classes, place it in the may be a predefined folder, make an entry (fully qualified class name) in the xml file. The engine will instantiate the class when required. The process of engine loading the class should be as follows.
Is RSL a solution? If yes, can anyone briefly tell me how to implement this?
Please let me know if my question is not clear.
You can compile the classes into an actionscript module, and then you can load that module in ApplicationDomain.currentDomain. After the module is loaded, you can use the ApplicationDomain to get the definition.
Thanks for the reply. I should have mentioned that I thought of using modules. However, I believe this would be an overhead (I might be wrong). Since I need only simple classes (many of them) to be compiled in one file (Just like a library project output swc) which can be loaded and used when required. I guess module would only compile all the classes if they are referenced. My objective is to keep the process as simple as possible so that other vendors can simply write classes, package them and it should work.