Hi,
1. In my application, I'm loading/saving some data from/to
qx.io.rest.Resource. To hide the complexity of REST, I want to expose a
simplified, high-level interface to application components; think of
load()/save() methods and some events to monitor progress of
operations.
In this scenario, there is a total of six events: [ load, save ] x [
starting, success, failure ]. (I'm not interested in monitoring amount
of data transferred, since a typical request will consist of less than
1KB.)
What is the best/preferred way to model this event scheme? Do I use
single event type and pack all the info into event data, or do I use
different event types? Should I extend qx.event.type.Event, or should I
adopt an existing class like qx.event.type.Data?
2. In my application, I've got a key-value store that implements user
configuration (a la Apache Commons Configuration):
var config = new Configuration();
config.set("foo.bar", "baz");
config.get("foo.bar"); // "baz"
Dotted names are used to introduce configuration hierarchy. I also want
the following to work:
config.bind("foo.bar", target, "property.chain");
The idea here is to use traditional qooxdoo ##SELECTION_END##binding
semantics; the difference is, "foo.bar" does not denote a real property
chain, it's merely a key name.
How should I implement this? Is it OK to completely override
qx.core.Object#bind with my implementation? Or should I model the
internals of Configuration class such a way that standard
qx.core.Object#bind (delegating to qx.data.SingleValueBinding) would
work? The second scenario would probably involve some generated classes
(similar to what qx.data.marshal.Json#toClass does) to reflect key
names with real properties. Frankly, it seems a bit complex to me. What
do you think?
Cheers,
Dimitri
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel