JaroslavTulach: /* Write Your Own Provider */ - 2015-09-02 06:53:18

Write Your Own Provider

←Older revision Revision as of 06:53, 2 September 2015
Line 19: Line 19:
=== Write Your Own Provider ===
=== Write Your Own Provider ===
-
* Get the [http://hg.netbeans.org/html4j/ sources] and check the implementation in [http://source.apidesign.org/hg/bck2brwsr/file/f436c6bf464d/ko ko/fx and ko/bck2brwsr] modules.
+
* Get the [http://hg.netbeans.org/html4j/file/8fae1ea08618/ko4j sources] and check the implementation in [http://source.apidesign.org/hg/bck2brwsr/file/f436c6bf464d/ko ko/fx and ko/bck2brwsr] modules.
* Implement your own [http://bits.netbeans.org/html+java/1.2/org/netbeans/html/context/spi/package-summary.html context provider]
* Implement your own [http://bits.netbeans.org/html+java/1.2/org/netbeans/html/context/spi/package-summary.html context provider]
* Guarantee your [[Knockout.js]] binding (if you are attempting to do [[Knockout.js]] binding) is correct by running the [[TCK]] in [http://bits.netbeans.org/html+java/1.2/org/netbeans/html/json/tck/package-summary.html org.netbeans.html.json.tck] package.
* Guarantee your [[Knockout.js]] binding (if you are attempting to do [[Knockout.js]] binding) is correct by running the [[TCK]] in [http://bits.netbeans.org/html+java/1.2/org/netbeans/html/json/tck/package-summary.html org.netbeans.html.json.tck] package.

JaroslavTulach: /* org.apidesign.html.json */ - 2015-09-02 06:52:31

org.apidesign.html.json

←Older revision Revision as of 06:52, 2 September 2015
Line 9: Line 9:
As the [[Twitter]] example shows, with the [[Java]] code may in fact the smaller than the same [[JavaScript]] one.
As the [[Twitter]] example shows, with the [[Java]] code may in fact the smaller than the same [[JavaScript]] one.
-
== org.apidesign.html.json ==
+
== org.netbeans.html.json.spi ==
The above [[ClientAPI]] is accompanied with associated [[ProviderAPI]] and [[TCK]]: [http://bits.netbeans.org/html+java/1.2/org/netbeans/html/json/spi/package-summary.html HTML JSON SPI]
The above [[ClientAPI]] is accompanied with associated [[ProviderAPI]] and [[TCK]]: [http://bits.netbeans.org/html+java/1.2/org/netbeans/html/json/spi/package-summary.html HTML JSON SPI]

JaroslavTulach: /* net.java.html.json */ - 2015-09-02 06:51:52

net.java.html.json

←Older revision Revision as of 06:51, 2 September 2015
Line 5: Line 5:
Can the [[Java]] to [[JSON]] mapping get any simpler than [http://bits.netbeans.org/html+java/1.2/net/java/html/json/package-summary.html net.java.html.json] package?
Can the [[Java]] to [[JSON]] mapping get any simpler than [http://bits.netbeans.org/html+java/1.2/net/java/html/json/package-summary.html net.java.html.json] package?
-
I doubt. With the help of [[AnnotationProcessor]]s we remove the need to type boiler plate code. Don't bother with getters and setters, don't bother with fields. Just use the '''@Property''' annotation and the rest will be generated for you. When you need to talk to server use '''@OnReceive''' annotation and you get the result. Type-safe. Reflection-less. Effective.
+
[[I]] doubt. With the help of [[AnnotationProcessor]]s we remove the need to type boiler plate code. Don't bother with getters and setters, don't bother with fields. Just use the '''@Property''' annotation and the rest will be generated for you. When you need to talk to server use '''@OnReceive''' annotation and you get the result. Type-safe. Reflection-less. Effective.
As the [[Twitter]] example shows, with the [[Java]] code may in fact the smaller than the same [[JavaScript]] one.
As the [[Twitter]] example shows, with the [[Java]] code may in fact the smaller than the same [[JavaScript]] one.

JaroslavTulach: /* Write Your Own Provider */ - 2015-09-02 06:47:47

Write Your Own Provider

←Older revision Revision as of 06:47, 2 September 2015
Line 19: Line 19:
=== Write Your Own Provider ===
=== Write Your Own Provider ===
-
* Get the [http://netbeans.org/html4j/ sources] and check the implementation in [http://source.apidesign.org/hg/bck2brwsr/file/f436c6bf464d/ko ko/fx and ko/bck2brwsr] modules.
+
* Get the [http://hg.netbeans.org/html4j/ sources] and check the implementation in [http://source.apidesign.org/hg/bck2brwsr/file/f436c6bf464d/ko ko/fx and ko/bck2brwsr] modules.
* Implement your own [http://bits.netbeans.org/html+java/1.2/org/netbeans/html/context/spi/package-summary.html context provider]
* Implement your own [http://bits.netbeans.org/html+java/1.2/org/netbeans/html/context/spi/package-summary.html context provider]
* Guarantee your [[Knockout.js]] binding (if you are attempting to do [[Knockout.js]] binding) is correct by running the [[TCK]] in [http://bits.netbeans.org/html+java/1.2/org/netbeans/html/json/tck/package-summary.html org.netbeans.html.json.tck] package.
* Guarantee your [[Knockout.js]] binding (if you are attempting to do [[Knockout.js]] binding) is correct by running the [[TCK]] in [http://bits.netbeans.org/html+java/1.2/org/netbeans/html/json/tck/package-summary.html org.netbeans.html.json.tck] package.

JaroslavTulach: /* Write Your Own Provider */ - 2015-09-02 06:47:21

Write Your Own Provider

←Older revision Revision as of 06:47, 2 September 2015
Line 19: Line 19:
=== Write Your Own Provider ===
=== Write Your Own Provider ===
-
* Get the [http://netbeans.org/html4j/ sources] and check the implementation in ''ko-fx'' and ''ko-bck2brwsr'' modules.
+
* Get the [http://netbeans.org/html4j/ sources] and check the implementation in [http://source.apidesign.org/hg/bck2brwsr/file/f436c6bf464d/ko ko/fx and ko/bck2brwsr] modules.
-
* Implement your own [http://hudson.apidesign.org/hudson/job/bck2brwsr-net.java.html.json/lastSuccessfulBuild/artifact/json-tck/target/site/apidocs/org/apidesign/html/json/spi/ContextProvider.html context provider]
+
* Implement your own [http://bits.netbeans.org/html+java/1.2/org/netbeans/html/context/spi/package-summary.html context provider]
* Guarantee your [[Knockout.js]] binding (if you are attempting to do [[Knockout.js]] binding) is correct by running the [[TCK]] in [http://bits.netbeans.org/html+java/1.2/org/netbeans/html/json/tck/package-summary.html org.netbeans.html.json.tck] package.
* Guarantee your [[Knockout.js]] binding (if you are attempting to do [[Knockout.js]] binding) is correct by running the [[TCK]] in [http://bits.netbeans.org/html+java/1.2/org/netbeans/html/json/tck/package-summary.html org.netbeans.html.json.tck] package.

JaroslavTulach: /* Write Your Own Provider */ - 2015-09-02 06:45:14

Write Your Own Provider

←Older revision Revision as of 06:45, 2 September 2015
Line 21: Line 21:
* Get the [http://netbeans.org/html4j/ sources] and check the implementation in ''ko-fx'' and ''ko-bck2brwsr'' modules.
* Get the [http://netbeans.org/html4j/ sources] and check the implementation in ''ko-fx'' and ''ko-bck2brwsr'' modules.
* Implement your own [http://hudson.apidesign.org/hudson/job/bck2brwsr-net.java.html.json/lastSuccessfulBuild/artifact/json-tck/target/site/apidocs/org/apidesign/html/json/spi/ContextProvider.html context provider]
* Implement your own [http://hudson.apidesign.org/hudson/job/bck2brwsr-net.java.html.json/lastSuccessfulBuild/artifact/json-tck/target/site/apidocs/org/apidesign/html/json/spi/ContextProvider.html context provider]
-
* Guarantee your [[Knockout.js]] binding (if you are attempting to do [[Knockout.js]] binding) is correct by running the [[TCK]]: http://hudson.apidesign.org/hudson/job/bck2brwsr-net.java.html.json/lastSuccessfulBuild/artifact/json-tck/target/site/apidocs/org/apidesign/html/json/tck/KnockoutTCK.html
+
* Guarantee your [[Knockout.js]] binding (if you are attempting to do [[Knockout.js]] binding) is correct by running the [[TCK]] in [http://bits.netbeans.org/html+java/1.2/org/netbeans/html/json/tck/package-summary.html org.netbeans.html.json.tck] package.
In case of questions, ask on our mailing list bck2brwsr (at) apidesign.org
In case of questions, ask on our mailing list bck2brwsr (at) apidesign.org

JaroslavTulach: /* Write Your Own Provider */ - 2015-09-02 06:44:10

Write Your Own Provider

←Older revision Revision as of 06:44, 2 September 2015
Line 19: Line 19:
=== Write Your Own Provider ===
=== Write Your Own Provider ===
-
* Get the [https://java.net/projects/html/sources/html4j/show sources] and check the implementation in ''ko-fx'' and ''ko-bck2brwsr'' modules.
+
* Get the [http://netbeans.org/html4j/ sources] and check the implementation in ''ko-fx'' and ''ko-bck2brwsr'' modules.
* Implement your own [http://hudson.apidesign.org/hudson/job/bck2brwsr-net.java.html.json/lastSuccessfulBuild/artifact/json-tck/target/site/apidocs/org/apidesign/html/json/spi/ContextProvider.html context provider]
* Implement your own [http://hudson.apidesign.org/hudson/job/bck2brwsr-net.java.html.json/lastSuccessfulBuild/artifact/json-tck/target/site/apidocs/org/apidesign/html/json/spi/ContextProvider.html context provider]
* Guarantee your [[Knockout.js]] binding (if you are attempting to do [[Knockout.js]] binding) is correct by running the [[TCK]]: http://hudson.apidesign.org/hudson/job/bck2brwsr-net.java.html.json/lastSuccessfulBuild/artifact/json-tck/target/site/apidocs/org/apidesign/html/json/tck/KnockoutTCK.html
* Guarantee your [[Knockout.js]] binding (if you are attempting to do [[Knockout.js]] binding) is correct by running the [[TCK]]: http://hudson.apidesign.org/hudson/job/bck2brwsr-net.java.html.json/lastSuccessfulBuild/artifact/json-tck/target/site/apidocs/org/apidesign/html/json/tck/KnockoutTCK.html

JaroslavTulach: /* org.apidesign.html.json */ - 2015-09-02 06:43:09

org.apidesign.html.json

←Older revision Revision as of 06:43, 2 September 2015
Line 15: Line 15:
Depending on the execution technology (e.g. [[Bck2Brwsr]] vs. [[HotSpot]] vs. for example [[TeaVM]]) rendering technology ([[Knockout.js]] or [[Angular.js]], [[Jersey]], etc.) and [[JSON]] persistence technology (e.g. native [[JavaScript]] objects vs. ''netscape.JSObject'' vs. [[Java]] wrapper like Jackson) one selects the right provider.
Depending on the execution technology (e.g. [[Bck2Brwsr]] vs. [[HotSpot]] vs. for example [[TeaVM]]) rendering technology ([[Knockout.js]] or [[Angular.js]], [[Jersey]], etc.) and [[JSON]] persistence technology (e.g. native [[JavaScript]] objects vs. ''netscape.JSObject'' vs. [[Java]] wrapper like Jackson) one selects the right provider.
-
As a result we can use the same [[API]] and execute it in different contexts (real browser, [[FXBrwsr]] or server). [[Java]] can once again guarantee its original [[WORA]] promise.
+
As a result we can use the same [[API]] and execute it in different contexts (real browser, [[FXBrwsr]] or server, or [[iOS]] or [[Android]]). [[Java]] can once again guarantee its original [[WORA]] promise.
=== Write Your Own Provider ===
=== Write Your Own Provider ===

JaroslavTulach: /* org.apidesign.html.json */ - 2015-09-02 06:42:28

org.apidesign.html.json

←Older revision Revision as of 06:42, 2 September 2015
Line 13: Line 13:
The above [[ClientAPI]] is accompanied with associated [[ProviderAPI]] and [[TCK]]: [http://bits.netbeans.org/html+java/1.2/org/netbeans/html/json/spi/package-summary.html HTML JSON SPI]
The above [[ClientAPI]] is accompanied with associated [[ProviderAPI]] and [[TCK]]: [http://bits.netbeans.org/html+java/1.2/org/netbeans/html/json/spi/package-summary.html HTML JSON SPI]
-
Depending on the execution technology (e.g. [[Bck2Brwsr]] vs. [[HotSpot]] vs. for example [[TeaVM]] rendering technology ([[Knockout.js]] or [[Angular.js]], [[Jersey]], etc.) and [[JSON]] persistence technology (e.g. native [[JavaScript]] objects vs. ''netscape.JSObject'' vs. [[Java]] wrapper like Jackson) one selects the right provider.
+
Depending on the execution technology (e.g. [[Bck2Brwsr]] vs. [[HotSpot]] vs. for example [[TeaVM]]) rendering technology ([[Knockout.js]] or [[Angular.js]], [[Jersey]], etc.) and [[JSON]] persistence technology (e.g. native [[JavaScript]] objects vs. ''netscape.JSObject'' vs. [[Java]] wrapper like Jackson) one selects the right provider.
As a result we can use the same [[API]] and execute it in different contexts (real browser, [[FXBrwsr]] or server). [[Java]] can once again guarantee its original [[WORA]] promise.
As a result we can use the same [[API]] and execute it in different contexts (real browser, [[FXBrwsr]] or server). [[Java]] can once again guarantee its original [[WORA]] promise.

JaroslavTulach: /* org.apidesign.html.json */ - 2015-09-02 06:42:14

org.apidesign.html.json

←Older revision Revision as of 06:42, 2 September 2015
Line 13: Line 13:
The above [[ClientAPI]] is accompanied with associated [[ProviderAPI]] and [[TCK]]: [http://bits.netbeans.org/html+java/1.2/org/netbeans/html/json/spi/package-summary.html HTML JSON SPI]
The above [[ClientAPI]] is accompanied with associated [[ProviderAPI]] and [[TCK]]: [http://bits.netbeans.org/html+java/1.2/org/netbeans/html/json/spi/package-summary.html HTML JSON SPI]
-
Depending on the execution technology (e.g. [[Bck2Brwsr]] vs. [[HotSpot]] vs. for example [[Doppio]]), rendering technology ([[Knockout.js]] or [[Angular.js]], [[Jersey]], etc.) and [[JSON]] persistence technology (e.g. native [[JavaScript]] objects vs. ''netscape.JSObject'' vs. [[Java]] wrapper like Jackson) one selects the right provider.
+
Depending on the execution technology (e.g. [[Bck2Brwsr]] vs. [[HotSpot]] vs. for example [[TeaVM]] rendering technology ([[Knockout.js]] or [[Angular.js]], [[Jersey]], etc.) and [[JSON]] persistence technology (e.g. native [[JavaScript]] objects vs. ''netscape.JSObject'' vs. [[Java]] wrapper like Jackson) one selects the right provider.
As a result we can use the same [[API]] and execute it in different contexts (real browser, [[FXBrwsr]] or server). [[Java]] can once again guarantee its original [[WORA]] promise.
As a result we can use the same [[API]] and execute it in different contexts (real browser, [[FXBrwsr]] or server). [[Java]] can once again guarantee its original [[WORA]] promise.