My problem is, that I just want to load dynamically a piece of code
and run it (for example to create a window).
It should work like a plugin architecture.
Can I copy a javascript class to my applications directory and load it
at runtime, without the knowledge about dependencies?
No. If you want to use the class code, you need to have the prerequisite
classes too.
I read about the getByName-method but do not know, if it's the right
way for me, because I can't check, if every dependency is available.
Is it possible to load every possible dependency via the #use command?
No, this is a compile-time hint. If I get you right, you need dependency
resolution at run time. There is no such mechanism currently (although
people have successfully created dynamic, server-based dependency
resolution for qooxdoo, but this really advanced stuff).
The alternative is to load the entire qooxdoo class hierarchy, to make
sure all possible classes are available to fulfill dependencies of
dynamic code. The Playground application does that, take a look at its
configuration. But it means you load a big chunk of qooxdoo code up-front.
I think qooxdoo parts will not help you (as some suggested), as the
parts are created up-front for a known application; there is no way to
dynamically create parts.
And how could I realize such an plugin architecture?
Thanks in advance! I'm new to qooxdoo and everything is very confusing
at the moment.
As you are new, it's rather unfortunate that you try dynamic code
loading with unknown dependencies as your first step. This is far
outside the normal qooxdoo application scope, and far into rather
unchartered territory. If you want my advice, do something more standard
first.
T.
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel