------=_Part_15487246_1395069322.1346341179024
Content-Type: multipart/alternative;
boundary="----=_Part_15487247_703636908.1346341179024"
------=_Part_15487247_703636908.1346341179024
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Hello everyone,
as a follow-up to my last email on improving plugin API, here comes the latest revision of
UI Plugins proof-of-concept patch (please find it attached).
This patch is focused on improving JavaScript plugin API, along with important changes and
improvements made to plugin infrastructure ( PluginManager ). Let's walk through the
changes step by step.
Improved plugin API, taking some inspiration from jQuery
Following is a sample plugin code that uses new plugin API:
var myPlugin = pluginApi('myPlugin'); // Obtain plugin API instance for
'myPlugin'
var myPluginConfig = myPlugin.configObject(); // Obtain plugin-specific configuration
// Register event handler functions to be invoked by WebAdmin
// Note: all functions are optional, the plugin only defines functions for events it wants
to handle
myPlugin.register({
UiInit: function() {
var testUrl = 'http://www.example.com/' + myPluginConfig.foo; // Assume plugin
configuration has 'foo' attribute
myPlugin.ui.addMainTab('Custom Tab', 'custom-tab', testUrl); // Invoke
some operation using plugin API
}
});
myPlugin.ready(); // Event handler functions are registered, we are now ready to get
initialized (UiInit)
UI plugin life-cycle, enforced by plugin infrastructure
The PluginState enumeration lists possible states of a plugin during its runtime:
* DEFINED : This is the initial state for all plugins. Plugin meta-data has been read
by PluginManager and the corresponding iframe element has been created for the plugin.
Note that at this point, the iframe element is not attached to DOM yet.
* LOADING : The iframe element for the plugin has been attached to DOM, which causes
plugin host page (previously known as plugin source page) to be fetched asynchronously in
the background. We are now waiting for plugin to report in as ready. In practice, due to
JavaScript runtime being single-threaded, WebAdmin startup logic will continue to execute
until the JavaScript runtime is "idle" (browser event loop returns), and at this
point JavaScript plugin code gets invoked through the plugin host page.
* READY : The plugin has indicated that it is ready for use. We assume the plugin has
already registered its event handler object (object containing various event handler
functions to be called by WebAdmin) at this point. We can now proceed with plugin
initialization.
* INITIALIZED : The plugin has been initialized by calling UiInit function on its
event handler object. We can now call other event handler functions, the plugin is now
initialized and in use.
Note on plugin initialization: the UiInit function will be called just once during the
lifetime of the plugin, after the plugin reports in as ready AND WebAdmin enters the state
that allows plugins to be invoked (entering main section for logged-in users), and before
other event handler functions are invoked by the plugin infrastructure.
Plugin meta-data is now passed to client using different format
Previously, plugin meta-data was embedded into WebAdmin host page as a simple JavaScript
object, like so:
var pluginDefinitions = { myPlugin: "<URL>", anotherPlugin:
"<URL>" }
Now, plugin meta-data is embedded into WebAdmin host page as a JavaScript array, like so:
var pluginDefinitions = [
{ name: "myPlugin", url: "<URL>", config: { "foo": 1,
"bar": "whatever" } },
{ name: "anotherPlugin", url: "<URL>" }
];
As you can see, pluginDefinitions is now an array of JavaScript objects, with each object
representing plugin meta-data. The "name" and "url" attributes are
mandatory (we need to check them when loading plugin descriptors). "config" is
the plugin configuration (JSON) object, obtained by merging default plugin configuration
(defined in plugin descriptor) with custom plugin configuration (defined in external
plugin configuration file). Note that the "config" attribute is optional.
In terms of Java classes, pluginDefinitions is mapped to PluginDefinitions overlay type,
and each meta-data object within the array is mapped to PluginMetaData overlay type.
Note on using assert statements in client code: you might notice that I'm using a lot
of assert statements in Plugin class. This is to ensure consistency and guard against
corrupted state during development. In GWT, assert statements work in a different way than
in standard Java VM. When debugging GWT application using Development Mode, assert
statements are checked and throw assertion errors during runtime (they are displayed in
Development Mode console). However, when compiling GWT application to JavaScript
(Production Mode), assert statements are removed by GWT compiler, so they don't affect
the application running in Production Mode.
Cheers,
Vojtech
------=_Part_15487247_703636908.1346341179024
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html><head><style type=3D'text/css'>p { margin: 0;
}</style></head><body><=
div style=3D'font-family: times new roman,new york,times,serif; font-size: =
12pt; color: #000000'><div
style=3D"color:#000;font-weight:normal;font-styl=
e:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-s=
ize:12pt;"><div style=3D"font-family: times new roman,new
york,times,serif;=
font-size: 12pt; color: #000000">Hello everyone,<br><br>as a
follow-up to =
my last email on improving plugin API, here comes the latest revision of UI=
Plugins proof-of-concept patch (please find it attached).<br><br>This patc=
h is focused on improving JavaScript plugin API, along with important chang=
es and improvements made to plugin infrastructure (<em>PluginManager</em>).=
Let's walk through the changes step by step.<br><br><hr
style=3D"width: 10=
0%; height: 2px;"><br><strong>Improved plugin API, taking some
inspiration =
from jQuery</strong><br style=3D"font-weight:
bold;"><br>Following is a sam=
ple plugin code that uses new plugin API:<br><br><span
style=3D"font-family=
: courier new,courier,monaco,monospace,sans-serif;">var myPlugin =3D plugin=
Api('myPlugin'); // Obtain plugin API instance for
'myPlugin'</span><br sty=
le=3D"font-family: courier new,courier,monaco,monospace,sans-serif;"><span
=
style=3D"font-family: courier new,courier,monaco,monospace,sans-serif;">var=
myPluginConfig =3D myPlugin.configObject(); // Obtain plugin-specific conf=
iguration</span><br style=3D"font-family: courier
new,courier,monaco,monosp=
ace,sans-serif;"><br style=3D"font-family: courier
new,courier,monaco,monos=
pace,sans-serif;"><span style=3D"font-family: courier
new,courier,monaco,mo=
nospace,sans-serif;">// Register event handler functions to be invoked by W=
ebAdmin</span><br style=3D"font-family: courier
new,courier,monaco,monospac=
e,sans-serif;"><span style=3D"font-family: courier
new,courier,monaco,monos=
pace,sans-serif;">// Note: all functions are optional, the plugin only defi=
nes functions for events it wants to handle</span><br
style=3D"font-family:=
courier new,courier,monaco,monospace,sans-serif;"><span
style=3D"font-fami=
ly: courier new,courier,monaco,monospace,sans-serif;">myPlugin.register({</=
span><br style=3D"font-family: courier new,courier,monaco,monospace,sans-se=
rif;"><span style=3D"font-family: courier
new,courier,monaco,monospace,sans=
-serif;"> UiInit: function() {</span><br
style=3D"font-family: courie=
r new,courier,monaco,monospace,sans-serif;"><span style=3D"font-family:
cou=
rier new,courier,monaco,monospace,sans-serif;"> var
testU=
rl =3D 'http://www.example.com/' + myPluginConfig.foo; // Assume plugin con=
figuration has 'foo' attribute</span><br style=3D"font-family:
courier new,=
courier,monaco,monospace,sans-serif;"><span style=3D"font-family: courier
n=
ew,courier,monaco,monospace,sans-serif;">
myPlugin.ui.add=
MainTab('Custom Tab', 'custom-tab', testUrl); // Invoke some operation
usin=
g plugin API</span><br style=3D"font-family: courier
new,courier,monaco,mon=
ospace,sans-serif;"><span style=3D"font-family: courier
new,courier,monaco,=
monospace,sans-serif;"> }</span><br style=3D"font-family:
courier new=
,courier,monaco,monospace,sans-serif;"><span style=3D"font-family: courier
=
new,courier,monaco,monospace,sans-serif;">});</span><br
style=3D"font-famil=
y: courier new,courier,monaco,monospace,sans-serif;"><br
style=3D"font-fami=
ly: courier new,courier,monaco,monospace,sans-serif;"><span
style=3D"font-f=
amily: courier new,courier,monaco,monospace,sans-serif;">myPlugin.ready(); =
// Event handler functions are registered, we are now ready to get initiali=
zed (UiInit)</span><br style=3D"font-family: courier
new,courier,monaco,mon=
ospace,sans-serif;"><br><hr style=3D"width: 100%; height:
2px;"><br><strong=
UI plugin life-cycle, enforced by plugin
infrastructure</strong><br style=
=3D"font-weight:
bold;"><br>The <em>PluginState</em> enumeration lists poss=
ible states of a plugin during its runtime:<br><ul><li><span
style=3D"font-=
weight: bold;">DEFINED</span>: This is the initial state for all plugins.
P=
lugin meta-data has been read by <span style=3D"font-style:
italic;">Plugin=
Manager</span> and the corresponding iframe element has been created for th=
e plugin. Note that at this point, the iframe element is not attached to DO=
M yet.<br><br></li><li><span style=3D"font-weight:
bold;">LOADING</span>: T=
he iframe element for the plugin has been attached to DOM, which causes <u>=
plugin host page</u> (previously known as plugin source page) to be fetched=
asynchronously in the background. We are now waiting for plugin to report =
in as ready. In practice, due to JavaScript runtime being single-threaded, =
WebAdmin startup logic will continue to execute until the JavaScript runtim=
e is "idle" (browser event loop returns), and at this point JavaScript plug=
in code gets invoked through the plugin host
page.<br><br></li><li><span st=
yle=3D"font-weight: bold;">READY</span>: The plugin has indicated that
it i=
s ready for use. We assume the plugin has already registered its event hand=
ler object (object containing various event handler functions to be called =
by WebAdmin) at this point. We can now proceed with plugin initialization.<=
br><br></li><li><span style=3D"font-weight:
bold;">INITIALIZED</span>: The =
plugin has been initialized by calling <span style=3D"font-style:
italic;">=
UiInit</span> function on its event handler object. We can now call other e=
vent handler functions, the plugin is now initialized and in use.</li></ul>=
<p><span style=3D"font-style: italic; text-decoration:
underline;">Note on =
plugin initialization:</span> the <span style=3D"font-style:
italic;">UiIni=
t</span> function will be called just once during the lifetime of the plugi=
n, after the plugin reports in as ready AND WebAdmin enters the state that =
allows plugins to be invoked (entering main section for logged-in users), a=
nd before other event handler functions are invoked by the plugin infrastru=
cture.</p><p><br></p><hr style=3D"width: 100%; height:
2px;"><br><p style=
=3D"font-weight: bold;">Plugin meta-data is now passed to client using diff=
erent format</p><p><br></p><p>Previously, plugin meta-data
was embedded int=
o WebAdmin host page as a simple JavaScript object, like
so:</p><p><br></p>=
<p style=3D"font-family: courier
new,courier,monaco,monospace,sans-serif;">=
var pluginDefinitions =3D { myPlugin: "<URL>", anotherPlugin:
"<UR=
L>" }<br></p><p><br></p><p>Now, plugin
meta-data is embedded into WebAdm=
in host page as a JavaScript array, like
so:<br></p><p><br></p><p style=3D"=
font-family: courier new,courier,monaco,monospace,sans-serif;">var pluginDe=
finitions =3D [</p><p style=3D"font-family: courier
new,courier,monaco,mono=
space,sans-serif;"> { name: "myPlugin", url:
"<URL>", config: {=
"foo": 1, "bar": "whatever" } },</p><p
style=3D"font-family: courier new,c=
ourier,monaco,monospace,sans-serif;"> { name: "anotherPlugin",
url: "=
<URL>" }<br></p><p style=3D"font-family: courier
new,courier,monaco,m=
onospace,sans-serif;">];</p><p><br></p><p>As you can
see, <span style=3D"fo=
nt-style: italic;">pluginDefinitions</span> is now an array of JavaScript
o=
bjects, with each object representing plugin meta-data. The "name" and
"url=
" attributes are mandatory (we need to check them when loading plugin descr=
iptors). "config" is the plugin configuration (JSON) object, obtained by me=
rging default plugin configuration (defined in plugin descriptor) with cust=
om plugin configuration (defined in external plugin configuration file). No=
te that the "config" attribute is
optional.<br></p><p><br></p><p>In terms o=
f Java classes, <span style=3D"font-style:
italic;">pluginDefinitions</span=
is mapped to <span style=3D"font-style:
italic;">PluginDefinitions</span>=
overlay type, and each meta-data
object within the array is mapped to <spa=
n style=3D"font-style: italic;">PluginMetaData</span> overlay
type.<br></p>=
<p><br></p><hr style=3D"width: 100%; height:
2px;"><br><p><span style=3D"fo=
nt-style: italic; text-decoration: underline;">Note on using assert stateme=
nts in client code:</span> you might notice that I'm using a lot of assert =
statements in <span style=3D"font-style: italic;">Plugin</span>
class. This=
is to ensure consistency and guard against corrupted state during developm=
ent. In GWT, assert statements work in a different way than in standard Jav=
a VM. When debugging GWT application using Development Mode, assert stateme=
nts are checked and throw assertion errors during runtime (they are display=
ed in Development Mode console). However, when compiling GWT application to=
JavaScript (Production Mode), assert statements are removed by GWT compile=
r, so they don't affect the application running in Production
Mode.<br></p>=
<p><br></p><p>Cheers,</p><p>Vojtech</p><p><br></p></div></div></div></body>=
</html>
------=_Part_15487247_703636908.1346341179024--
------=_Part_15487246_1395069322.1346341179024
Content-Type: text/x-patch; name=WIP-UI-Plugins-PoC-revision-4.patch
Content-Disposition: attachment; filename=WIP-UI-Plugins-PoC-revision-4.patch
Content-Transfer-Encoding: base64
RnJvbSBlYjQ3NzlkYTZjODUxMmIwNjA3Mzk5ZTg4MzAwMWQxYmUwMzA1OGI4IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBWb2p0ZWNoIFN6b2NzIDx2c3pvY3NAcmVkaGF0LmNvbT4KRGF0
ZTogVGh1LCAxOSBKdWwgMjAxMiAxNDo0ODo0MCArMDIwMApTdWJqZWN0OiBbUEFUQ0hdIFdJUDog
VUkgUGx1Z2lucyBQb0MsIHJldmlzaW9uIDQKCkNoYW5nZS1JZDogSWJiZjc2NTlmMDIzZDg5Mjlm
YjBhODMwMzA2MTg1MWJiN2VlNTU1YmMKU2lnbmVkLW9mZi1ieTogVm9qdGVjaCBTem9jcyA8dnN6
b2NzQHJlZGhhdC5jb20+Ci0tLQogLi4uL3NlcnZlci9nd3QvR3d0RHluYW1pY0h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uYXRpdmUgdm9pZCBpbnZva2VQbHVnaW4oSmF2YVNjcmlw
dE9iamVjdCBwbHVnaW5FdmVudEhhbmRsZXJPYmplY3QsIFN0cmluZyBmdW5jdGlvbk5hbWUsIEph
dmFTY3JpcHRPYmplY3QgY29udGV4dE9iamVjdCkgLyoteworICAgICAgICB2YXIgaGFuZGxlckZ1
bmN0aW9uID0gcGx1Z2luRXZlbnRIYW5kbGVyT2JqZWN0W2Z1bmN0aW9uTmFtZV07CisKKyAgICAg
ICAgaWYgKHR5cGVvZiBoYW5kbGVyRnVuY3Rpb24gPT09ICdmdW5jdGlvbicpIHsKKyAgICAgICAg
ICAgIGlmIChjb250ZXh0T2JqZWN0ICE9IG51bGwpIHsKKyAgICAgICAgICAgICAgICBoYW5kbGVy
RnVuY3Rpb24oY29udGV4dE9iamVjdCk7CisgICAgICAgICAgICB9IGVsc2UgeworICAgICAgICAg
ICAgICAgIGhhbmRsZXJGdW5jdGlvbigpOworICAgICAgICAgICAgfQorICAgICAgICB9CisgICAg
fS0qLzsKKworICAgIC8qKgorICAgICAqIFJldHVybnMge0Bjb2RlIHRydWV9IHdoZW4gcGx1Z2lu
IGludm9jYXRpb24gaXMgZW5hYmxlZCBhbmQgdGhlIGdpdmVuIHBsdWdpbiBoYXMgYmVlbiBpbml0
aWFsaXplZC4KKyAgICAgKi8KKyAgICBib29sZWFuIGNhbkRvUGx1Z2luQWN0aW9uKFN0cmluZyBw
bHVnaW5OYW1lKSB7CisgICAgICAgIFBsdWdpbiBwbHVnaW4gPSBnZXRQbHVnaW4ocGx1Z2luTmFt
ZSk7CisgICAgICAgIHJldHVybiBjYW5JbnZva2VQbHVnaW5zICYmIHBsdWdpbiAhPSBudWxsICYm
IHBsdWdpbi5pc0luU3RhdGUoUGx1Z2luU3RhdGUuSU5JVElBTElaRUQpOworICAgIH0KKworICAg
IC8qKgorICAgICAqIFJlZ2lzdGVycyBhbiBldmVudCBoYW5kbGVyIG9iamVjdCAob2JqZWN0IGNv
bnR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2luTmFtZSk7Cisg
ICAgICAgICAgICB9LAorCisgICAgICAgICAgICAvLyBSZXR1cm5zIHRoZSBjb25maWd1cmF0aW9u
IG9iamVjdCBhc3NvY2lhdGVkIHdpdGggdGhlIHBsdWdpbgorICAgICAgICAgICAgY29uZmlnT2Jq
ZWN0OiBmdW5jdGlvbigpIHsKKyAgICAgICAgICAgICAgICByZXR1cm4gY3R4LkBvcmcub3ZpcnQu
ZW5naW5lLnVpLndlYmFkbWluLnBsdWdpbi5QbHVnaW5NYW5hZ2VyOjpnZXRDb25maWdPYmplY3Qo
TGphdmEvbGFuZy9TdHJpbmc7KSh0aGlzLnBsdWdpbk5hbWUpOworICAgICAgICAgICAgfSwKKwor
ICAgICAgICAgICAgLy8gTmFtZXNwYWNlIGZvciBpbnZva2luZyBQbHVnaW5VaUZ1bmN0aW9ucwor
ICAgICAgICAgICAgdWk6IHsKKworICAgICAgICAgICAgICAgIGFkZE1haW5UYWI6IGZ1bmN0aW9u
KGxhYmVsLCBoaXN0b3J5VG9rZW4sIGNvbnRlbnRVcmwpIHsKKyAgICAgICAgICAgICAgICAgICAg
aWYgKGNhbkRvUGx1Z2luQWN0aW9uKHRoaXMub3duZXIucGx1Z2luTmFtZSkpIHsKKyAgICAgICAg
ICAgICAgICAgICAgICAgIHVpRnVuY3Rpb25zLkBvcmcub3ZpcnQuZW5naW5lLnVpLndlYmFkbWlu
LnBsdWdpbi5QbHVnaW5VaUZ1bmN0aW9uczo6YWRkTWFpblRhYihMamF2YS9sYW5nL1N0cmluZztM
amF2YS9sYW5nL1N0cmluZztMamF2YS9sYW5nL1N0cmluZzspKGxhYmVsLGhpc3RvcnlUb2tlbixj
b250ZW50VXJsKTsKKyAgICAgICAgICAgICAgICAgICAgfQorICAgICAgICAgICAgICAgIH0KKwor
ICAgICAgICAgICAgfQorCisgICAgICAgIH07CisKKyAgICAgICAgLy8gR2l2ZSBpbml0IGZ1bmN0
aW9uIHRoZSBwbHVnaW5BcGkgcHJvdG90eXBlI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