On 08/29/2013 10:28 AM, benco wrote:
> Hi,
>
> I'm having some problems dealing with a custom config.json.
>
> I plan to use qx.core.Environment outside of a qooxdoo app and I was
> planning to create a custom Bootstrap that extend this class by removing the
> "qx.*" keys (except the mandatory ones qx.debug) just to have a really small
> final "build" file.

It's unclear to me what you exactly want to achieve. Do you want a build 
that includes the qx.core.Environment functionality? Use qx-oo.js 
("qx.Server").

It's not possible to extend a static class so that won't work. But if 
your concern is size, q.c.E is actually small, and the few, the 
_checksMap would be superfluous, but the few pre-defined keys 
"qx.allowUrlSettings", ... really don't add much.

What is your goal, size? functionality?

>
> What I've done at the moment is simply create an alias
> Env=qx.core.Environment in a file that must be included with the build. It
> works but I'd like to figure out how to use the Boostrap declaration and how
> it works exactly.
It's basically the same as qx.Class.define, with a few features stripped 
(e.g. no interfaces or mixins).

Even if you wrote your own q.c.E replacement, you would need to change 
all references to it in the framework.

>   When I try to extend qx.core.Environment, the result is
> Env equals to a new qx Class but I've no direct access. How can I
> instanciate it directly ?

I'm not getting it. q.c.E is a static class, so you can't instantiate 
it. If you extend it the derived class will inherit nothing from it.

>
> I tried to understand how the generation of qxWeb works and how to declare
> classes and bootstrap to make something similar but I'm not sure what to do
> exactly.

qxWeb is just a special app build. If you look into 
component/standalone/website/module.js you find job definitions together 
with class patterns that should go into each build. You just take 
classes (either qx.Class.define'd or qx.Boostrap.define'd, it doesn't 
matter) in a compile job's "include" and let the Generator figure out 
the dependencies and the ordering.

Does that help?
T.


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to