http://git-wip-us.apache.org/repos/asf/polygene-website/blob/bb9c9971/content/java/2017/sample-dci.html
----------------------------------------------------------------------
diff --git a/content/java/2017/sample-dci.html 
b/content/java/2017/sample-dci.html
new file mode 100644
index 0000000..c74026e
--- /dev/null
+++ b/content/java/2017/sample-dci.html
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";><html 
xmlns="http://www.w3.org/1999/xhtml";><head><meta http-equiv="Content-Type" 
content="text/html; charset=UTF-8" /><title>DCI Sample</title><meta 
name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" 
href="index.html" title="" /><link rel="up" href="samples.html" title="Samples" 
/><link rel="prev" href="samples.html" title="Samples" /><link rel="next" 
href="sample-forum.html" title="Forum Sample" />
+
+
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <!-- The above 3 meta tags *must* come first in the head; any other head 
content must come *after* these tags -->
+    <meta name="description" content="">
+    <meta name="author" content="">
+    <link rel="icon" href="../../favicon.ico">
+
+    <title>Starter Template for Bootstrap</title>
+
+    <!-- Bootstrap core CSS -->
+    <link href="bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet">
+
+    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
+    <link href="css/ie10-viewport-bug-workaround.css" rel="stylesheet">
+
+    <!-- Custom styles for this template -->
+    <link href="css/polygene-ng.css" rel="stylesheet">
+
+    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
+    <!--[if lt IE 9]><script 
src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
+    <script src="js/ie-emulation-modes-warning.js"></script>
+
+    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media 
queries -->
+    <!--[if lt IE 9]>
+      <script 
src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js";></script>
+      <script 
src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js";></script>
+    <![endif]-->
+
+<!-- favicon -->
+
+<link rel="shortcut icon" href="http://polygene.apache.org/favicon.ico"; 
type="image/vnd.microsoft.icon" />
+<link rel="icon" href="http://polygene.apache.org/favicon.ico"; 
type="image/x-icon" />
+
+<!-- style -->
+
+<link href="css/shCore.css" rel="stylesheet" type="text/css" />
+<link href="css/shCoreEclipse.css" rel="stylesheet" type="text/css" />
+<link href="css/shThemeEclipse.css" rel="stylesheet" type="text/css" />
+<!--<link href="css/polygene.css" rel="stylesheet" type="text/css" />-->
+
+<!-- Syntax Highlighter -->
+
+<script type="text/javascript" src="js/shCore.js"></script>
+<script type="text/javascript" src="js/shBrushJava.js"></script>
+<script type="text/javascript" src="js/shBrushScala.js"></script>
+<script type="text/javascript" src="js/shBrushJScript.js"></script>
+<script type="text/javascript" src="js/shBrushBash.js"></script>
+<script type="text/javascript" src="js/shBrushPlain.js"></script>
+<script type="text/javascript" src="js/shBrushXml.js"></script>
+<script type="text/javascript" src="js/shBrushGroovy.js"></script>
+<script type="text/javascript" src="js/shBrushPython.js"></script>
+<script type="text/javascript" src="js/shBrushRuby.js"></script>
+<script type="text/javascript" src="js/shBrushCSharp.js"></script>
+
+<script type="text/javascript">
+  SyntaxHighlighter.defaults['tab-size'] = 4;
+  SyntaxHighlighter.defaults['gutter'] = false;
+  SyntaxHighlighter.defaults['toolbar'] = false;
+  SyntaxHighlighter.all()
+</script>
+
+<!-- JQuery -->
+
+<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script>
+
+<!-- Image Scaler -->
+
+<script type="text/javascript" src="js/imagescaler.js"></script>
+
+<!-- Table Styler -->
+
+<script type="text/javascript" src="js/tablestyler.js"></script>
+
+<!-- Apache Polygene WebSite Progressive Enhancement -->
+
+<link href="css/progressive-enhancement.css" rel="stylesheet" type="text/css" 
/>
+<script type="text/javascript" src="js/jquery.scrollTo-1.4.2.js"></script>
+<script type="text/javascript" src="js/progressive-enhancement.js"></script>
+
+<!-- Analytics -->
+ <script type="text/javascript">
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-62007352-1']);
+  _gaq.push(['_trackPageview']);
+
+  (function() {
+    var ga = document.createElement('script'); ga.type = 'text/javascript'; 
ga.async = true;
+    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 
'http://www') + '.google-analytics.com/ga.js';
+    var s = document.getElementsByTagName('script')[0]; 
s.parentNode.insertBefore(ga, s);
+  })();
+ </script>
+
+  </head><body><div xmlns="" xmlns:exsl="http://exslt.org/common"; 
class="logo"><a href="index.html"><img src="images/logo-standard.png" 
/></a></div><nav xmlns="" xmlns:exsl="http://exslt.org/common"; class="navbar 
navbar-inverse navbar-fixed-top"><div class="container"><div 
class="navbar-header"><a class="navbar-brand" href="#">Apache<br />Polygene
+          </a></div><div id="navbar" class="collapse navbar-collapse"><span 
class="nav navbar-nav"><div xmlns="http://www.w3.org/1999/xhtml"; 
class="toc"><dl class="toc"><dt><span class="section"><a 
href="index.html#home">Polygene™</a></span></dt><dt><span class="section"><a 
href="intro.html">Introduction</a></span></dt><dt><span class="section"><a 
href="tutorials.html">Tutorials</a></span></dt><dt><span class="section"><a 
href="javadocs.html">Javadoc</a></span></dt><dt><span class="section"><span 
xmlns="" href="samples.html">Samples</span></span></dt><dt><span 
class="section"><a href="core.html">Core</a></span></dt><dt><span 
class="section"><a href="libraries.html">Libraries</a></span></dt><dt><span 
class="section"><a href="extensions.html">Extensions</a></span></dt><dt><span 
class="section"><a href="tools.html">Tools</a></span></dt><dt><span 
class="section"><a href="glossary.html">Glossary 
</a></span></dt></dl></div></span></div></div></nav><div xmlns="" 
xmlns:exsl="http://exslt
 .org/common" class="sidenav"><div xmlns="http://www.w3.org/1999/xhtml"; 
class="toc"><dl class="toc"><dt><span class="section"><a 
href="samples.html#_overview_2">Overview</a></span></dt><dt><span 
class="section"><span xmlns="" href="sample-dci.html">DCI 
Sample</span></span></dt><dt><span class="section"><a 
href="sample-forum.html">Forum Sample</a></span></dt><dt><span 
class="section"><a href="sample-car-rental.html">Car Rental 
Sample</a></span></dt><dt><span class="section"><a 
href="sample-sql-support.html">SQL Support Sample</a></span></dt><dt><span 
class="section"><a href="sample-swing.html">Swing Bindings 
Sample</a></span></dt></dl></div></div><div class="section"><div 
class="titlepage"><div><div><h3 class="title"><a id="sample-dci"></a>DCI 
Sample</h3></div></div></div><p>Sample of how DCI (Data, Context &amp; 
Interaction) pattern is implemented using
+Polygene™ core only.</p><p><a class="ulink" 
href="https://github.com/apache/polygene-java/tree/develop/samples/dci"; 
target="_top">Browse Source</a></p></div><footer xmlns="" 
xmlns:exsl="http://exslt.org/common"; class="footer"><div class="container"><p 
class="text-muted">Copyright © 2017 The Apache Software Foundation, Licensed 
under the <a href="http://www.apache.org/licenses/"; target="_blank">Apache 
License, Version 2.0</a>.
+          Apache Polygene, Polygene, Apache, the Apache feather logo, and the 
Apache Polygene project logo are
+          trademarks of The Apache Software Foundation.
+          All other marks mentioned may be trademarks or registered trademarks 
of their respective owners.
+        </p></div></footer><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js";></script><script
 xmlns="" xmlns:exsl="http://exslt.org/common";>window.jQuery || 
document.write('&lt;script 
src="js/jquery-1.6.4.min.js"&gt;&lt;/script&gt;')</script><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"; 
integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb"
 crossorigin="anonymous"></script><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="bootstrap-3.3.7/js/bootstrap.min.js"></script><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="js/ie10-viewport-bug-workaround.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/polygene-website/blob/bb9c9971/content/java/2017/sample-forum.html
----------------------------------------------------------------------
diff --git a/content/java/2017/sample-forum.html 
b/content/java/2017/sample-forum.html
new file mode 100644
index 0000000..46087ee
--- /dev/null
+++ b/content/java/2017/sample-forum.html
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";><html 
xmlns="http://www.w3.org/1999/xhtml";><head><meta http-equiv="Content-Type" 
content="text/html; charset=UTF-8" /><title>Forum Sample</title><meta 
name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" 
href="index.html" title="" /><link rel="up" href="samples.html" title="Samples" 
/><link rel="prev" href="sample-dci.html" title="DCI Sample" /><link rel="next" 
href="sample-car-rental.html" title="Car Rental Sample" />
+
+
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <!-- The above 3 meta tags *must* come first in the head; any other head 
content must come *after* these tags -->
+    <meta name="description" content="">
+    <meta name="author" content="">
+    <link rel="icon" href="../../favicon.ico">
+
+    <title>Starter Template for Bootstrap</title>
+
+    <!-- Bootstrap core CSS -->
+    <link href="bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet">
+
+    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
+    <link href="css/ie10-viewport-bug-workaround.css" rel="stylesheet">
+
+    <!-- Custom styles for this template -->
+    <link href="css/polygene-ng.css" rel="stylesheet">
+
+    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
+    <!--[if lt IE 9]><script 
src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
+    <script src="js/ie-emulation-modes-warning.js"></script>
+
+    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media 
queries -->
+    <!--[if lt IE 9]>
+      <script 
src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js";></script>
+      <script 
src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js";></script>
+    <![endif]-->
+
+<!-- favicon -->
+
+<link rel="shortcut icon" href="http://polygene.apache.org/favicon.ico"; 
type="image/vnd.microsoft.icon" />
+<link rel="icon" href="http://polygene.apache.org/favicon.ico"; 
type="image/x-icon" />
+
+<!-- style -->
+
+<link href="css/shCore.css" rel="stylesheet" type="text/css" />
+<link href="css/shCoreEclipse.css" rel="stylesheet" type="text/css" />
+<link href="css/shThemeEclipse.css" rel="stylesheet" type="text/css" />
+<!--<link href="css/polygene.css" rel="stylesheet" type="text/css" />-->
+
+<!-- Syntax Highlighter -->
+
+<script type="text/javascript" src="js/shCore.js"></script>
+<script type="text/javascript" src="js/shBrushJava.js"></script>
+<script type="text/javascript" src="js/shBrushScala.js"></script>
+<script type="text/javascript" src="js/shBrushJScript.js"></script>
+<script type="text/javascript" src="js/shBrushBash.js"></script>
+<script type="text/javascript" src="js/shBrushPlain.js"></script>
+<script type="text/javascript" src="js/shBrushXml.js"></script>
+<script type="text/javascript" src="js/shBrushGroovy.js"></script>
+<script type="text/javascript" src="js/shBrushPython.js"></script>
+<script type="text/javascript" src="js/shBrushRuby.js"></script>
+<script type="text/javascript" src="js/shBrushCSharp.js"></script>
+
+<script type="text/javascript">
+  SyntaxHighlighter.defaults['tab-size'] = 4;
+  SyntaxHighlighter.defaults['gutter'] = false;
+  SyntaxHighlighter.defaults['toolbar'] = false;
+  SyntaxHighlighter.all()
+</script>
+
+<!-- JQuery -->
+
+<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script>
+
+<!-- Image Scaler -->
+
+<script type="text/javascript" src="js/imagescaler.js"></script>
+
+<!-- Table Styler -->
+
+<script type="text/javascript" src="js/tablestyler.js"></script>
+
+<!-- Apache Polygene WebSite Progressive Enhancement -->
+
+<link href="css/progressive-enhancement.css" rel="stylesheet" type="text/css" 
/>
+<script type="text/javascript" src="js/jquery.scrollTo-1.4.2.js"></script>
+<script type="text/javascript" src="js/progressive-enhancement.js"></script>
+
+<!-- Analytics -->
+ <script type="text/javascript">
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-62007352-1']);
+  _gaq.push(['_trackPageview']);
+
+  (function() {
+    var ga = document.createElement('script'); ga.type = 'text/javascript'; 
ga.async = true;
+    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 
'http://www') + '.google-analytics.com/ga.js';
+    var s = document.getElementsByTagName('script')[0]; 
s.parentNode.insertBefore(ga, s);
+  })();
+ </script>
+
+  </head><body><div xmlns="" xmlns:exsl="http://exslt.org/common"; 
class="logo"><a href="index.html"><img src="images/logo-standard.png" 
/></a></div><nav xmlns="" xmlns:exsl="http://exslt.org/common"; class="navbar 
navbar-inverse navbar-fixed-top"><div class="container"><div 
class="navbar-header"><a class="navbar-brand" href="#">Apache<br />Polygene
+          </a></div><div id="navbar" class="collapse navbar-collapse"><span 
class="nav navbar-nav"><div xmlns="http://www.w3.org/1999/xhtml"; 
class="toc"><dl class="toc"><dt><span class="section"><a 
href="index.html#home">Polygene™</a></span></dt><dt><span class="section"><a 
href="intro.html">Introduction</a></span></dt><dt><span class="section"><a 
href="tutorials.html">Tutorials</a></span></dt><dt><span class="section"><a 
href="javadocs.html">Javadoc</a></span></dt><dt><span class="section"><span 
xmlns="" href="samples.html">Samples</span></span></dt><dt><span 
class="section"><a href="core.html">Core</a></span></dt><dt><span 
class="section"><a href="libraries.html">Libraries</a></span></dt><dt><span 
class="section"><a href="extensions.html">Extensions</a></span></dt><dt><span 
class="section"><a href="tools.html">Tools</a></span></dt><dt><span 
class="section"><a href="glossary.html">Glossary 
</a></span></dt></dl></div></span></div></div></nav><div xmlns="" 
xmlns:exsl="http://exslt
 .org/common" class="sidenav"><div xmlns="http://www.w3.org/1999/xhtml"; 
class="toc"><dl class="toc"><dt><span class="section"><a 
href="samples.html#_overview_2">Overview</a></span></dt><dt><span 
class="section"><a href="sample-dci.html">DCI Sample</a></span></dt><dt><span 
class="section"><span xmlns="" href="sample-forum.html">Forum 
Sample</span></span></dt><dt><span class="section"><a 
href="sample-car-rental.html">Car Rental Sample</a></span></dt><dt><span 
class="section"><a href="sample-sql-support.html">SQL Support 
Sample</a></span></dt><dt><span class="section"><a 
href="sample-swing.html">Swing Bindings 
Sample</a></span></dt></dl></div></div><div class="section"><div 
class="titlepage"><div><div><h3 class="title"><a id="sample-forum"></a>Forum 
Sample</h3></div></div></div><p>Sample of how to build a web forum using <a 
class="xref" href="library-rest-server.html" title="ReST Server"> ReST Server 
Library</a>,
+<a class="xref" href="extension-es-file.html" title="File EntityStore">File 
EntityStore</a> and <a class="xref" href="library-fileconfig.html" 
title="FileConfig">FileConfig Library</a>.</p><p><a class="ulink" 
href="https://github.com/apache/polygene-java/tree/develop/samples/forum"; 
target="_top">Browse Source</a></p></div><footer xmlns="" 
xmlns:exsl="http://exslt.org/common"; class="footer"><div class="container"><p 
class="text-muted">Copyright © 2017 The Apache Software Foundation, Licensed 
under the <a href="http://www.apache.org/licenses/"; target="_blank">Apache 
License, Version 2.0</a>.
+          Apache Polygene, Polygene, Apache, the Apache feather logo, and the 
Apache Polygene project logo are
+          trademarks of The Apache Software Foundation.
+          All other marks mentioned may be trademarks or registered trademarks 
of their respective owners.
+        </p></div></footer><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js";></script><script
 xmlns="" xmlns:exsl="http://exslt.org/common";>window.jQuery || 
document.write('&lt;script 
src="js/jquery-1.6.4.min.js"&gt;&lt;/script&gt;')</script><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"; 
integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb"
 crossorigin="anonymous"></script><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="bootstrap-3.3.7/js/bootstrap.min.js"></script><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="js/ie10-viewport-bug-workaround.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/polygene-website/blob/bb9c9971/content/java/2017/sample-sql-support.html
----------------------------------------------------------------------
diff --git a/content/java/2017/sample-sql-support.html 
b/content/java/2017/sample-sql-support.html
new file mode 100644
index 0000000..463f955
--- /dev/null
+++ b/content/java/2017/sample-sql-support.html
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";><html 
xmlns="http://www.w3.org/1999/xhtml";><head><meta http-equiv="Content-Type" 
content="text/html; charset=UTF-8" /><title>SQL Support Sample</title><meta 
name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" 
href="index.html" title="" /><link rel="up" href="samples.html" title="Samples" 
/><link rel="prev" href="sample-car-rental.html" title="Car Rental Sample" 
/><link rel="next" href="sample-swing.html" title="Swing Bindings Sample" />
+
+
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <!-- The above 3 meta tags *must* come first in the head; any other head 
content must come *after* these tags -->
+    <meta name="description" content="">
+    <meta name="author" content="">
+    <link rel="icon" href="../../favicon.ico">
+
+    <title>Starter Template for Bootstrap</title>
+
+    <!-- Bootstrap core CSS -->
+    <link href="bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet">
+
+    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
+    <link href="css/ie10-viewport-bug-workaround.css" rel="stylesheet">
+
+    <!-- Custom styles for this template -->
+    <link href="css/polygene-ng.css" rel="stylesheet">
+
+    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
+    <!--[if lt IE 9]><script 
src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
+    <script src="js/ie-emulation-modes-warning.js"></script>
+
+    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media 
queries -->
+    <!--[if lt IE 9]>
+      <script 
src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js";></script>
+      <script 
src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js";></script>
+    <![endif]-->
+
+<!-- favicon -->
+
+<link rel="shortcut icon" href="http://polygene.apache.org/favicon.ico"; 
type="image/vnd.microsoft.icon" />
+<link rel="icon" href="http://polygene.apache.org/favicon.ico"; 
type="image/x-icon" />
+
+<!-- style -->
+
+<link href="css/shCore.css" rel="stylesheet" type="text/css" />
+<link href="css/shCoreEclipse.css" rel="stylesheet" type="text/css" />
+<link href="css/shThemeEclipse.css" rel="stylesheet" type="text/css" />
+<!--<link href="css/polygene.css" rel="stylesheet" type="text/css" />-->
+
+<!-- Syntax Highlighter -->
+
+<script type="text/javascript" src="js/shCore.js"></script>
+<script type="text/javascript" src="js/shBrushJava.js"></script>
+<script type="text/javascript" src="js/shBrushScala.js"></script>
+<script type="text/javascript" src="js/shBrushJScript.js"></script>
+<script type="text/javascript" src="js/shBrushBash.js"></script>
+<script type="text/javascript" src="js/shBrushPlain.js"></script>
+<script type="text/javascript" src="js/shBrushXml.js"></script>
+<script type="text/javascript" src="js/shBrushGroovy.js"></script>
+<script type="text/javascript" src="js/shBrushPython.js"></script>
+<script type="text/javascript" src="js/shBrushRuby.js"></script>
+<script type="text/javascript" src="js/shBrushCSharp.js"></script>
+
+<script type="text/javascript">
+  SyntaxHighlighter.defaults['tab-size'] = 4;
+  SyntaxHighlighter.defaults['gutter'] = false;
+  SyntaxHighlighter.defaults['toolbar'] = false;
+  SyntaxHighlighter.all()
+</script>
+
+<!-- JQuery -->
+
+<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script>
+
+<!-- Image Scaler -->
+
+<script type="text/javascript" src="js/imagescaler.js"></script>
+
+<!-- Table Styler -->
+
+<script type="text/javascript" src="js/tablestyler.js"></script>
+
+<!-- Apache Polygene WebSite Progressive Enhancement -->
+
+<link href="css/progressive-enhancement.css" rel="stylesheet" type="text/css" 
/>
+<script type="text/javascript" src="js/jquery.scrollTo-1.4.2.js"></script>
+<script type="text/javascript" src="js/progressive-enhancement.js"></script>
+
+<!-- Analytics -->
+ <script type="text/javascript">
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-62007352-1']);
+  _gaq.push(['_trackPageview']);
+
+  (function() {
+    var ga = document.createElement('script'); ga.type = 'text/javascript'; 
ga.async = true;
+    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 
'http://www') + '.google-analytics.com/ga.js';
+    var s = document.getElementsByTagName('script')[0]; 
s.parentNode.insertBefore(ga, s);
+  })();
+ </script>
+
+  </head><body><div xmlns="" xmlns:exsl="http://exslt.org/common"; 
class="logo"><a href="index.html"><img src="images/logo-standard.png" 
/></a></div><nav xmlns="" xmlns:exsl="http://exslt.org/common"; class="navbar 
navbar-inverse navbar-fixed-top"><div class="container"><div 
class="navbar-header"><a class="navbar-brand" href="#">Apache<br />Polygene
+          </a></div><div id="navbar" class="collapse navbar-collapse"><span 
class="nav navbar-nav"><div xmlns="http://www.w3.org/1999/xhtml"; 
class="toc"><dl class="toc"><dt><span class="section"><a 
href="index.html#home">Polygene™</a></span></dt><dt><span class="section"><a 
href="intro.html">Introduction</a></span></dt><dt><span class="section"><a 
href="tutorials.html">Tutorials</a></span></dt><dt><span class="section"><a 
href="javadocs.html">Javadoc</a></span></dt><dt><span class="section"><span 
xmlns="" href="samples.html">Samples</span></span></dt><dt><span 
class="section"><a href="core.html">Core</a></span></dt><dt><span 
class="section"><a href="libraries.html">Libraries</a></span></dt><dt><span 
class="section"><a href="extensions.html">Extensions</a></span></dt><dt><span 
class="section"><a href="tools.html">Tools</a></span></dt><dt><span 
class="section"><a href="glossary.html">Glossary 
</a></span></dt></dl></div></span></div></div></nav><div xmlns="" 
xmlns:exsl="http://exslt
 .org/common" class="sidenav"><div xmlns="http://www.w3.org/1999/xhtml"; 
class="toc"><dl class="toc"><dt><span class="section"><a 
href="samples.html#_overview_2">Overview</a></span></dt><dt><span 
class="section"><a href="sample-dci.html">DCI Sample</a></span></dt><dt><span 
class="section"><a href="sample-forum.html">Forum 
Sample</a></span></dt><dt><span class="section"><a 
href="sample-car-rental.html">Car Rental Sample</a></span></dt><dt><span 
class="section"><span xmlns="" href="sample-sql-support.html">SQL Support 
Sample</span></span></dt><dt><span class="section"><a 
href="sample-swing.html">Swing Bindings 
Sample</a></span></dt></dl></div></div><div class="section"><div 
class="titlepage"><div><div><h3 class="title"><a 
id="sample-sql-support"></a>SQL Support Sample</h3></div></div></div><div 
class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 
class="title">Note</h3><p>This sample use PostgreSQL and drop all of its data 
once run in order to be runnable multiple times.</p
 ></div><p>Sample of how to fully use Polygene™ SQL support : <a class="xref" 
 >href="library-sql.html" title="SQL">SQL Library</a>, <a class="xref" 
 >href="extension-es-sql.html" title="SQL EntityStore"> SQL EntityStore</a> and 
 ><a class="xref" href="extension-indexing-sql.html" title="SQL 
 >Index/Query">SQL Index/Query</a>.</p><p><a class="ulink" 
 >href="https://github.com/apache/polygene-java/tree/develop/samples/sql-support";
 > target="_top">Browse Source</a></p><p>Here are the steps needed to setup the 
 >database using the <code class="literal">psql</code> utility command:</p><pre 
 >class="programlisting brush: bash">user@host $ psql postgres
+postgres=# CREATE USER jdbc_test_login WITH PASSWORD 'password';
+CREATE ROLE
+postgres=# CREATE DATABASE jdbc_test_db;
+CREATE DATABASE
+postgres=# GRANT ALL PRIVILEGES ON DATABASE jdbc_test_db TO jdbc_test_login;
+GRANT
+postgres=# \q
+user@host $  psql -d jdbc_test_db&lt;/strong&gt;
+postgres=# CREATE EXTENSION ltree;
+CREATE EXTENSION
+postgres=# \q
+user@host $</pre><p>From the sources you can run the <code 
class="literal">runSqlSupportSample</code> Gradle task to run the example.
+See <a class="xref" href="build-system.html" title="Polygene™ Build 
System">Build System</a> if you need some guidance.</p></div><footer xmlns="" 
xmlns:exsl="http://exslt.org/common"; class="footer"><div class="container"><p 
class="text-muted">Copyright © 2017 The Apache Software Foundation, Licensed 
under the <a href="http://www.apache.org/licenses/"; target="_blank">Apache 
License, Version 2.0</a>.
+          Apache Polygene, Polygene, Apache, the Apache feather logo, and the 
Apache Polygene project logo are
+          trademarks of The Apache Software Foundation.
+          All other marks mentioned may be trademarks or registered trademarks 
of their respective owners.
+        </p></div></footer><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js";></script><script
 xmlns="" xmlns:exsl="http://exslt.org/common";>window.jQuery || 
document.write('&lt;script 
src="js/jquery-1.6.4.min.js"&gt;&lt;/script&gt;')</script><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"; 
integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb"
 crossorigin="anonymous"></script><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="bootstrap-3.3.7/js/bootstrap.min.js"></script><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="js/ie10-viewport-bug-workaround.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/polygene-website/blob/bb9c9971/content/java/2017/sample-swing.html
----------------------------------------------------------------------
diff --git a/content/java/2017/sample-swing.html 
b/content/java/2017/sample-swing.html
new file mode 100644
index 0000000..d01b007
--- /dev/null
+++ b/content/java/2017/sample-swing.html
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";><html 
xmlns="http://www.w3.org/1999/xhtml";><head><meta http-equiv="Content-Type" 
content="text/html; charset=UTF-8" /><title>Swing Bindings Sample</title><meta 
name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" 
href="index.html" title="" /><link rel="up" href="samples.html" title="Samples" 
/><link rel="prev" href="sample-sql-support.html" title="SQL Support Sample" 
/><link rel="next" href="core.html" title="Core" />
+
+
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <!-- The above 3 meta tags *must* come first in the head; any other head 
content must come *after* these tags -->
+    <meta name="description" content="">
+    <meta name="author" content="">
+    <link rel="icon" href="../../favicon.ico">
+
+    <title>Starter Template for Bootstrap</title>
+
+    <!-- Bootstrap core CSS -->
+    <link href="bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet">
+
+    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
+    <link href="css/ie10-viewport-bug-workaround.css" rel="stylesheet">
+
+    <!-- Custom styles for this template -->
+    <link href="css/polygene-ng.css" rel="stylesheet">
+
+    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
+    <!--[if lt IE 9]><script 
src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
+    <script src="js/ie-emulation-modes-warning.js"></script>
+
+    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media 
queries -->
+    <!--[if lt IE 9]>
+      <script 
src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js";></script>
+      <script 
src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js";></script>
+    <![endif]-->
+
+<!-- favicon -->
+
+<link rel="shortcut icon" href="http://polygene.apache.org/favicon.ico"; 
type="image/vnd.microsoft.icon" />
+<link rel="icon" href="http://polygene.apache.org/favicon.ico"; 
type="image/x-icon" />
+
+<!-- style -->
+
+<link href="css/shCore.css" rel="stylesheet" type="text/css" />
+<link href="css/shCoreEclipse.css" rel="stylesheet" type="text/css" />
+<link href="css/shThemeEclipse.css" rel="stylesheet" type="text/css" />
+<!--<link href="css/polygene.css" rel="stylesheet" type="text/css" />-->
+
+<!-- Syntax Highlighter -->
+
+<script type="text/javascript" src="js/shCore.js"></script>
+<script type="text/javascript" src="js/shBrushJava.js"></script>
+<script type="text/javascript" src="js/shBrushScala.js"></script>
+<script type="text/javascript" src="js/shBrushJScript.js"></script>
+<script type="text/javascript" src="js/shBrushBash.js"></script>
+<script type="text/javascript" src="js/shBrushPlain.js"></script>
+<script type="text/javascript" src="js/shBrushXml.js"></script>
+<script type="text/javascript" src="js/shBrushGroovy.js"></script>
+<script type="text/javascript" src="js/shBrushPython.js"></script>
+<script type="text/javascript" src="js/shBrushRuby.js"></script>
+<script type="text/javascript" src="js/shBrushCSharp.js"></script>
+
+<script type="text/javascript">
+  SyntaxHighlighter.defaults['tab-size'] = 4;
+  SyntaxHighlighter.defaults['gutter'] = false;
+  SyntaxHighlighter.defaults['toolbar'] = false;
+  SyntaxHighlighter.all()
+</script>
+
+<!-- JQuery -->
+
+<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script>
+
+<!-- Image Scaler -->
+
+<script type="text/javascript" src="js/imagescaler.js"></script>
+
+<!-- Table Styler -->
+
+<script type="text/javascript" src="js/tablestyler.js"></script>
+
+<!-- Apache Polygene WebSite Progressive Enhancement -->
+
+<link href="css/progressive-enhancement.css" rel="stylesheet" type="text/css" 
/>
+<script type="text/javascript" src="js/jquery.scrollTo-1.4.2.js"></script>
+<script type="text/javascript" src="js/progressive-enhancement.js"></script>
+
+<!-- Analytics -->
+ <script type="text/javascript">
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-62007352-1']);
+  _gaq.push(['_trackPageview']);
+
+  (function() {
+    var ga = document.createElement('script'); ga.type = 'text/javascript'; 
ga.async = true;
+    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 
'http://www') + '.google-analytics.com/ga.js';
+    var s = document.getElementsByTagName('script')[0]; 
s.parentNode.insertBefore(ga, s);
+  })();
+ </script>
+
+  </head><body><div xmlns="" xmlns:exsl="http://exslt.org/common"; 
class="logo"><a href="index.html"><img src="images/logo-standard.png" 
/></a></div><nav xmlns="" xmlns:exsl="http://exslt.org/common"; class="navbar 
navbar-inverse navbar-fixed-top"><div class="container"><div 
class="navbar-header"><a class="navbar-brand" href="#">Apache<br />Polygene
+          </a></div><div id="navbar" class="collapse navbar-collapse"><span 
class="nav navbar-nav"><div xmlns="http://www.w3.org/1999/xhtml"; 
class="toc"><dl class="toc"><dt><span class="section"><a 
href="index.html#home">Polygene™</a></span></dt><dt><span class="section"><a 
href="intro.html">Introduction</a></span></dt><dt><span class="section"><a 
href="tutorials.html">Tutorials</a></span></dt><dt><span class="section"><a 
href="javadocs.html">Javadoc</a></span></dt><dt><span class="section"><span 
xmlns="" href="samples.html">Samples</span></span></dt><dt><span 
class="section"><a href="core.html">Core</a></span></dt><dt><span 
class="section"><a href="libraries.html">Libraries</a></span></dt><dt><span 
class="section"><a href="extensions.html">Extensions</a></span></dt><dt><span 
class="section"><a href="tools.html">Tools</a></span></dt><dt><span 
class="section"><a href="glossary.html">Glossary 
</a></span></dt></dl></div></span></div></div></nav><div xmlns="" 
xmlns:exsl="http://exslt
 .org/common" class="sidenav"><div xmlns="http://www.w3.org/1999/xhtml"; 
class="toc"><dl class="toc"><dt><span class="section"><a 
href="samples.html#_overview_2">Overview</a></span></dt><dt><span 
class="section"><a href="sample-dci.html">DCI Sample</a></span></dt><dt><span 
class="section"><a href="sample-forum.html">Forum 
Sample</a></span></dt><dt><span class="section"><a 
href="sample-car-rental.html">Car Rental Sample</a></span></dt><dt><span 
class="section"><a href="sample-sql-support.html">SQL Support 
Sample</a></span></dt><dt><span class="section"><span xmlns="" 
href="sample-swing.html">Swing Bindings 
Sample</span></span></dt></dl></div></div><div class="section"><div 
class="titlepage"><div><div><h3 class="title"><a id="sample-swing"></a>Swing 
Bindings Sample</h3></div></div></div><p>Sample of how to write custom 
binders.</p><p><a class="ulink" 
href="https://github.com/apache/polygene-java/tree/develop/samples/swing"; 
target="_top">Browse Source</a></p></div><footer xmlns="" xmlns:
 exsl="http://exslt.org/common"; class="footer"><div class="container"><p 
class="text-muted">Copyright © 2017 The Apache Software Foundation, Licensed 
under the <a href="http://www.apache.org/licenses/"; target="_blank">Apache 
License, Version 2.0</a>.
+          Apache Polygene, Polygene, Apache, the Apache feather logo, and the 
Apache Polygene project logo are
+          trademarks of The Apache Software Foundation.
+          All other marks mentioned may be trademarks or registered trademarks 
of their respective owners.
+        </p></div></footer><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js";></script><script
 xmlns="" xmlns:exsl="http://exslt.org/common";>window.jQuery || 
document.write('&lt;script 
src="js/jquery-1.6.4.min.js"&gt;&lt;/script&gt;')</script><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"; 
integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb"
 crossorigin="anonymous"></script><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="bootstrap-3.3.7/js/bootstrap.min.js"></script><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="js/ie10-viewport-bug-workaround.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/polygene-website/blob/bb9c9971/content/java/2017/samples.html
----------------------------------------------------------------------
diff --git a/content/java/2017/samples.html b/content/java/2017/samples.html
new file mode 100644
index 0000000..63ae3bc
--- /dev/null
+++ b/content/java/2017/samples.html
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";><html 
xmlns="http://www.w3.org/1999/xhtml";><head><meta http-equiv="Content-Type" 
content="text/html; charset=UTF-8" /><title>Samples</title><meta 
name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" 
href="index.html" title="" /><link rel="up" href="index.html" title="" /><link 
rel="prev" href="javadocs.html" title="Javadoc" /><link rel="next" 
href="sample-dci.html" title="DCI Sample" />
+
+
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <!-- The above 3 meta tags *must* come first in the head; any other head 
content must come *after* these tags -->
+    <meta name="description" content="">
+    <meta name="author" content="">
+    <link rel="icon" href="../../favicon.ico">
+
+    <title>Starter Template for Bootstrap</title>
+
+    <!-- Bootstrap core CSS -->
+    <link href="bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet">
+
+    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
+    <link href="css/ie10-viewport-bug-workaround.css" rel="stylesheet">
+
+    <!-- Custom styles for this template -->
+    <link href="css/polygene-ng.css" rel="stylesheet">
+
+    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
+    <!--[if lt IE 9]><script 
src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
+    <script src="js/ie-emulation-modes-warning.js"></script>
+
+    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media 
queries -->
+    <!--[if lt IE 9]>
+      <script 
src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js";></script>
+      <script 
src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js";></script>
+    <![endif]-->
+
+<!-- favicon -->
+
+<link rel="shortcut icon" href="http://polygene.apache.org/favicon.ico"; 
type="image/vnd.microsoft.icon" />
+<link rel="icon" href="http://polygene.apache.org/favicon.ico"; 
type="image/x-icon" />
+
+<!-- style -->
+
+<link href="css/shCore.css" rel="stylesheet" type="text/css" />
+<link href="css/shCoreEclipse.css" rel="stylesheet" type="text/css" />
+<link href="css/shThemeEclipse.css" rel="stylesheet" type="text/css" />
+<!--<link href="css/polygene.css" rel="stylesheet" type="text/css" />-->
+
+<!-- Syntax Highlighter -->
+
+<script type="text/javascript" src="js/shCore.js"></script>
+<script type="text/javascript" src="js/shBrushJava.js"></script>
+<script type="text/javascript" src="js/shBrushScala.js"></script>
+<script type="text/javascript" src="js/shBrushJScript.js"></script>
+<script type="text/javascript" src="js/shBrushBash.js"></script>
+<script type="text/javascript" src="js/shBrushPlain.js"></script>
+<script type="text/javascript" src="js/shBrushXml.js"></script>
+<script type="text/javascript" src="js/shBrushGroovy.js"></script>
+<script type="text/javascript" src="js/shBrushPython.js"></script>
+<script type="text/javascript" src="js/shBrushRuby.js"></script>
+<script type="text/javascript" src="js/shBrushCSharp.js"></script>
+
+<script type="text/javascript">
+  SyntaxHighlighter.defaults['tab-size'] = 4;
+  SyntaxHighlighter.defaults['gutter'] = false;
+  SyntaxHighlighter.defaults['toolbar'] = false;
+  SyntaxHighlighter.all()
+</script>
+
+<!-- JQuery -->
+
+<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script>
+
+<!-- Image Scaler -->
+
+<script type="text/javascript" src="js/imagescaler.js"></script>
+
+<!-- Table Styler -->
+
+<script type="text/javascript" src="js/tablestyler.js"></script>
+
+<!-- Apache Polygene WebSite Progressive Enhancement -->
+
+<link href="css/progressive-enhancement.css" rel="stylesheet" type="text/css" 
/>
+<script type="text/javascript" src="js/jquery.scrollTo-1.4.2.js"></script>
+<script type="text/javascript" src="js/progressive-enhancement.js"></script>
+
+<!-- Analytics -->
+ <script type="text/javascript">
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-62007352-1']);
+  _gaq.push(['_trackPageview']);
+
+  (function() {
+    var ga = document.createElement('script'); ga.type = 'text/javascript'; 
ga.async = true;
+    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 
'http://www') + '.google-analytics.com/ga.js';
+    var s = document.getElementsByTagName('script')[0]; 
s.parentNode.insertBefore(ga, s);
+  })();
+ </script>
+
+  </head><body><div xmlns="" xmlns:exsl="http://exslt.org/common"; 
class="logo"><a href="index.html"><img src="images/logo-standard.png" 
/></a></div><nav xmlns="" xmlns:exsl="http://exslt.org/common"; class="navbar 
navbar-inverse navbar-fixed-top"><div class="container"><div 
class="navbar-header"><a class="navbar-brand" href="#">Apache<br />Polygene
+          </a></div><div id="navbar" class="collapse navbar-collapse"><span 
class="nav navbar-nav"><div xmlns="http://www.w3.org/1999/xhtml"; 
class="toc"><dl class="toc"><dt><span class="section"><a 
href="index.html#home">Polygene™</a></span></dt><dt><span class="section"><a 
href="intro.html">Introduction</a></span></dt><dt><span class="section"><a 
href="tutorials.html">Tutorials</a></span></dt><dt><span class="section"><a 
href="javadocs.html">Javadoc</a></span></dt><dt><span class="section"><span 
xmlns="" href="samples.html">Samples</span></span></dt><dt><span 
class="section"><a href="core.html">Core</a></span></dt><dt><span 
class="section"><a href="libraries.html">Libraries</a></span></dt><dt><span 
class="section"><a href="extensions.html">Extensions</a></span></dt><dt><span 
class="section"><a href="tools.html">Tools</a></span></dt><dt><span 
class="section"><a href="glossary.html">Glossary 
</a></span></dt></dl></div></span></div></div></nav><div xmlns="" 
xmlns:exsl="http://exslt
 .org/common" class="sidenav"><div xmlns="http://www.w3.org/1999/xhtml"; 
class="toc"><dl class="toc"><dt><span class="section"><span xmlns="" 
href="samples.html#_overview_2">Overview</span></span></dt><dt><span 
class="section"><a href="sample-dci.html">DCI Sample</a></span></dt><dt><span 
class="section"><a href="sample-forum.html">Forum 
Sample</a></span></dt><dt><span class="section"><a 
href="sample-car-rental.html">Car Rental Sample</a></span></dt><dt><span 
class="section"><a href="sample-sql-support.html">SQL Support 
Sample</a></span></dt><dt><span class="section"><a 
href="sample-swing.html">Swing Bindings 
Sample</a></span></dt></dl></div></div><div class="section"><div 
class="titlepage"><div><div><h2 class="title"><a 
id="samples"></a>Samples</h2></div></div></div><div class="section"><div 
class="titlepage"><div><div><h3 class="title"><a 
id="_overview_2"></a>Overview</h3></div></div></div><p>The Polygene™ SDK 
comes with several sample applications. This is a very good place
+to look for code examples and recipes.</p><p>The samples are available in the 
<code class="literal">samples/</code> directory of the Polygene™ 
SDK.</p></div></div><footer xmlns="" xmlns:exsl="http://exslt.org/common"; 
class="footer"><div class="container"><p class="text-muted">Copyright © 2017 
The Apache Software Foundation, Licensed under the <a 
href="http://www.apache.org/licenses/"; target="_blank">Apache License, Version 
2.0</a>.
+          Apache Polygene, Polygene, Apache, the Apache feather logo, and the 
Apache Polygene project logo are
+          trademarks of The Apache Software Foundation.
+          All other marks mentioned may be trademarks or registered trademarks 
of their respective owners.
+        </p></div></footer><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js";></script><script
 xmlns="" xmlns:exsl="http://exslt.org/common";>window.jQuery || 
document.write('&lt;script 
src="js/jquery-1.6.4.min.js"&gt;&lt;/script&gt;')</script><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"; 
integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb"
 crossorigin="anonymous"></script><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="bootstrap-3.3.7/js/bootstrap.min.js"></script><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="js/ie10-viewport-bug-workaround.js"></script></body></html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/polygene-website/blob/bb9c9971/content/java/2017/schemas/2008/dev-status/1/dev-status.xsd
----------------------------------------------------------------------
diff --git a/content/java/2017/schemas/2008/dev-status/1/dev-status.xsd 
b/content/java/2017/schemas/2008/dev-status/1/dev-status.xsd
new file mode 100644
index 0000000..47831aa
--- /dev/null
+++ b/content/java/2017/schemas/2008/dev-status/1/dev-status.xsd
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~  Licensed to the Apache Software Foundation (ASF) under one
+  ~  or more contributor license agreements.  See the NOTICE file
+  ~  distributed with this work for additional information
+  ~  regarding copyright ownership.  The ASF licenses this file
+  ~  to you under the Apache License, Version 2.0 (the
+  ~  "License"); you may not use this file except in compliance
+  ~  with the License.  You may obtain a copy of the License at
+  ~
+  ~       http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~  Unless required by applicable law or agreed to in writing, software
+  ~  distributed under the License is distributed on an "AS IS" BASIS,
+  ~  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~  See the License for the specific language governing permissions and
+  ~  limitations under the License.
+  ~
+  ~
+  -->
+<xs:schema attributeFormDefault="unqualified"
+           elementFormDefault="qualified"
+           
targetNamespace="http://polygene.apache.org/schemas/2008/dev-status/1";
+           xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+  <xs:element name="module" type="ns:moduleType" 
xmlns:ns="http://polygene.apache.org/schemas/2008/dev-status/1"/>
+  <xs:complexType name="licensesType">
+    <xs:sequence>
+      <xs:element type="xs:string" name="license">
+        <xs:annotation>
+          <xs:documentation>
+            Apache Polygene itself only uses Apache License ver 2.0 for all 
its own developed code. We also try to list
+            all dependencies' licenses here, so automated tools can bring that 
into the documentation.
+            If the license is OTHER, the documentation will highlight this as 
a warning, and instruct users
+            to carefully examine NOTICE file as well as the dependencies 
themselves.
+          </xs:documentation>
+        </xs:annotation>
+        <xs:simpleType>
+          <xs:restriction base="xs:string">
+            <xs:enumeration value="ALv2"/>
+            <xs:enumeration value="MIT"/>
+            <xs:enumeration value="BSD"/>
+            <xs:enumeration value="LGPL"/>
+            <xs:enumeration value="OTHER"/>
+          </xs:restriction>
+        </xs:simpleType>
+      </xs:element>
+    </xs:sequence>
+  </xs:complexType>
+  <xs:complexType name="moduleType">
+    <xs:sequence>
+      <xs:element type="ns:statusType" name="status" 
xmlns:ns="http://polygene.apache.org/schemas/2008/dev-status/1"/>
+      <xs:element type="ns:licensesType" name="licenses" 
xmlns:ns="http://polygene.apache.org/schemas/2008/dev-status/1"/>
+    </xs:sequence>
+  </xs:complexType>
+  <xs:complexType name="statusType">
+    <xs:sequence>
+      <xs:element name="codebase">
+        <xs:annotation>
+          <xs:documentation>none,early,beta,stable,mature</xs:documentation>
+        </xs:annotation>
+        <xs:simpleType>
+          <xs:restriction base="xs:string">
+            <xs:enumeration value="none"/>
+            <xs:enumeration value="early"/>
+            <xs:enumeration value="beta"/>
+            <xs:enumeration value="stable"/>
+            <xs:enumeration value="mature"/>
+          </xs:restriction>
+        </xs:simpleType>
+      </xs:element>
+      <xs:element name="documentation">
+        <xs:annotation>
+          <xs:documentation>none, brief, good, complete</xs:documentation>
+        </xs:annotation>
+        <xs:simpleType>
+          <xs:restriction base="xs:string">
+            <xs:enumeration value="none"/>
+            <xs:enumeration value="brief"/>
+            <xs:enumeration value="good"/>
+            <xs:enumeration value="complete"/>
+          </xs:restriction>
+        </xs:simpleType>
+      </xs:element>
+      <xs:element name="unittests">
+        <xs:annotation>
+          <xs:documentation>
+            none=0-10%, some=10-40%, good=40-75%, complete=75-100% test 
coverage of codebase.
+            This number is likely to be manually maintained, but future tools 
may update this automatically.
+          </xs:documentation>
+        </xs:annotation>
+        <xs:simpleType>
+          <xs:restriction base="xs:string">
+            <xs:enumeration value="none"/>
+            <xs:enumeration value="some"/>
+            <xs:enumeration value="good"/>
+            <xs:enumeration value="complete"/>
+          </xs:restriction>
+        </xs:simpleType>
+      </xs:element>
+    </xs:sequence>
+  </xs:complexType>
+</xs:schema>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/polygene-website/blob/bb9c9971/content/java/2017/scripting.html
----------------------------------------------------------------------
diff --git a/content/java/2017/scripting.html b/content/java/2017/scripting.html
new file mode 100644
index 0000000..3550287
--- /dev/null
+++ b/content/java/2017/scripting.html
@@ -0,0 +1,168 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";><html 
xmlns="http://www.w3.org/1999/xhtml";><head><meta http-equiv="Content-Type" 
content="text/html; charset=UTF-8" /><title>Scripting</title><meta 
name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" 
href="index.html" title="" /><link rel="up" href="libraries.html" 
title="Libraries" /><link rel="prev" href="libraries.html" title="Libraries" 
/><link rel="next" href="library-alarm.html" title="Alarms" />
+
+
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <!-- The above 3 meta tags *must* come first in the head; any other head 
content must come *after* these tags -->
+    <meta name="description" content="">
+    <meta name="author" content="">
+    <link rel="icon" href="../../favicon.ico">
+
+    <title>Starter Template for Bootstrap</title>
+
+    <!-- Bootstrap core CSS -->
+    <link href="bootstrap-3.3.7/css/bootstrap.min.css" rel="stylesheet">
+
+    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
+    <link href="css/ie10-viewport-bug-workaround.css" rel="stylesheet">
+
+    <!-- Custom styles for this template -->
+    <link href="css/polygene-ng.css" rel="stylesheet">
+
+    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
+    <!--[if lt IE 9]><script 
src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
+    <script src="js/ie-emulation-modes-warning.js"></script>
+
+    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media 
queries -->
+    <!--[if lt IE 9]>
+      <script 
src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js";></script>
+      <script 
src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js";></script>
+    <![endif]-->
+
+<!-- favicon -->
+
+<link rel="shortcut icon" href="http://polygene.apache.org/favicon.ico"; 
type="image/vnd.microsoft.icon" />
+<link rel="icon" href="http://polygene.apache.org/favicon.ico"; 
type="image/x-icon" />
+
+<!-- style -->
+
+<link href="css/shCore.css" rel="stylesheet" type="text/css" />
+<link href="css/shCoreEclipse.css" rel="stylesheet" type="text/css" />
+<link href="css/shThemeEclipse.css" rel="stylesheet" type="text/css" />
+<!--<link href="css/polygene.css" rel="stylesheet" type="text/css" />-->
+
+<!-- Syntax Highlighter -->
+
+<script type="text/javascript" src="js/shCore.js"></script>
+<script type="text/javascript" src="js/shBrushJava.js"></script>
+<script type="text/javascript" src="js/shBrushScala.js"></script>
+<script type="text/javascript" src="js/shBrushJScript.js"></script>
+<script type="text/javascript" src="js/shBrushBash.js"></script>
+<script type="text/javascript" src="js/shBrushPlain.js"></script>
+<script type="text/javascript" src="js/shBrushXml.js"></script>
+<script type="text/javascript" src="js/shBrushGroovy.js"></script>
+<script type="text/javascript" src="js/shBrushPython.js"></script>
+<script type="text/javascript" src="js/shBrushRuby.js"></script>
+<script type="text/javascript" src="js/shBrushCSharp.js"></script>
+
+<script type="text/javascript">
+  SyntaxHighlighter.defaults['tab-size'] = 4;
+  SyntaxHighlighter.defaults['gutter'] = false;
+  SyntaxHighlighter.defaults['toolbar'] = false;
+  SyntaxHighlighter.all()
+</script>
+
+<!-- JQuery -->
+
+<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script>
+
+<!-- Image Scaler -->
+
+<script type="text/javascript" src="js/imagescaler.js"></script>
+
+<!-- Table Styler -->
+
+<script type="text/javascript" src="js/tablestyler.js"></script>
+
+<!-- Apache Polygene WebSite Progressive Enhancement -->
+
+<link href="css/progressive-enhancement.css" rel="stylesheet" type="text/css" 
/>
+<script type="text/javascript" src="js/jquery.scrollTo-1.4.2.js"></script>
+<script type="text/javascript" src="js/progressive-enhancement.js"></script>
+
+<!-- Analytics -->
+ <script type="text/javascript">
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-62007352-1']);
+  _gaq.push(['_trackPageview']);
+
+  (function() {
+    var ga = document.createElement('script'); ga.type = 'text/javascript'; 
ga.async = true;
+    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 
'http://www') + '.google-analytics.com/ga.js';
+    var s = document.getElementsByTagName('script')[0]; 
s.parentNode.insertBefore(ga, s);
+  })();
+ </script>
+
+  </head><body><div xmlns="" xmlns:exsl="http://exslt.org/common"; 
class="logo"><a href="index.html"><img src="images/logo-standard.png" 
/></a></div><nav xmlns="" xmlns:exsl="http://exslt.org/common"; class="navbar 
navbar-inverse navbar-fixed-top"><div class="container"><div 
class="navbar-header"><a class="navbar-brand" href="#">Apache<br />Polygene
+          </a></div><div id="navbar" class="collapse navbar-collapse"><span 
class="nav navbar-nav"><div xmlns="http://www.w3.org/1999/xhtml"; 
class="toc"><dl class="toc"><dt><span class="section"><a 
href="index.html#home">Polygene™</a></span></dt><dt><span class="section"><a 
href="intro.html">Introduction</a></span></dt><dt><span class="section"><a 
href="tutorials.html">Tutorials</a></span></dt><dt><span class="section"><a 
href="javadocs.html">Javadoc</a></span></dt><dt><span class="section"><a 
href="samples.html">Samples</a></span></dt><dt><span class="section"><a 
href="core.html">Core</a></span></dt><dt><span class="section"><span xmlns="" 
href="libraries.html">Libraries</span></span></dt><dt><span class="section"><a 
href="extensions.html">Extensions</a></span></dt><dt><span class="section"><a 
href="tools.html">Tools</a></span></dt><dt><span class="section"><a 
href="glossary.html">Glossary 
</a></span></dt></dl></div></span></div></div></nav><div xmlns="" 
xmlns:exsl="http://exslt
 .org/common" class="sidenav"><div xmlns="http://www.w3.org/1999/xhtml"; 
class="toc"><dl class="toc"><dt><span class="section"><a 
href="libraries.html#_overview_5">Overview</a></span></dt><dt><span 
class="section"><span xmlns="" 
href="scripting.html">Scripting</span></span></dt><dt><span class="section"><a 
href="library-alarm.html">Alarms</a></span></dt><dt><span class="section"><a 
href="library-circuitbreaker.html">Circuit Breaker</a></span></dt><dt><span 
class="section"><a 
href="library-constraints.html">Constraints</a></span></dt><dt><span 
class="section"><a 
href="library-fileconfig.html">FileConfig</a></span></dt><dt><span 
class="section"><a href="library-http.html">HTTP</a></span></dt><dt><span 
class="section"><a href="library-invocation-cache.html">Invocation 
Cache</a></span></dt><dt><span class="section"><a 
href="library-jmx.html">JMX</a></span></dt><dt><span class="section"><a 
href="library-locking.html">Locking</a></span></dt><dt><span class="section"><a 
href="library-logging
 .html">Logging</a></span></dt><dt><span class="section"><a 
href="library-osgi.html">OSGi</a></span></dt><dt><span class="section"><a 
href="library-rdf.html">RDF</a></span></dt><dt><span class="section"><a 
href="library-rest-client.html">ReST Client</a></span></dt><dt><span 
class="section"><a href="library-rest-client-primer.html">ReST - HATEOAS 
Primer</a></span></dt><dt><span class="section"><a 
href="library-rest-common.html">ReST Common</a></span></dt><dt><span 
class="section"><a href="library-rest-server.html">ReST 
Server</a></span></dt><dt><span class="section"><a 
href="library-restlet.html">Restlet Support</a></span></dt><dt><span 
class="section"><a href="library-servlet.html">Servlet</a></span></dt><dt><span 
class="section"><a href="library-shiro.html">Shiro 
Security</a></span></dt><dt><span class="section"><a 
href="library-shiro-web.html">Shiro Web Security</a></span></dt><dt><span 
class="section"><a href="library-spring.html">Spring 
Integration</a></span></dt><dt><span class=
 "section"><a href="library-sql.html">SQL</a></span></dt><dt><span 
class="section"><a href="library-uid.html">UID</a></span></dt><dt><span 
class="section"><a 
href="library-uowfile.html">UoWFile</a></span></dt></dl></div></div><div 
class="section"><div class="titlepage"><div><div><h3 class="title"><a 
id="scripting"></a>Scripting</h3></div></div></div><p class="remark"><em><span 
class="comment"></span></em></p><p class="devstatus-code-stable">code</p><p 
class="devstatus-docs-good">docs</p><p 
class="devstatus-tests-good">tests</p><p>The Scripting Library allows Mixin 
methods to be implemented in any JSR-223 scripting language, loaded dynamically 
on
+first use and allowing reloading of the script in runtime.</p><div 
class="table"><a id="idm3948"></a><p class="title"><strong>Table 19. 
Artifact</strong></p><div class="table-contents"><table summary="Artifact" 
border="1"><colgroup><col class="col_1" /><col class="col_2" /><col 
class="col_3" /></colgroup><thead><tr><th align="left" valign="top">Group 
ID</th><th align="left" valign="top">Artifact ID</th><th align="left" 
valign="top">Version</th></tr></thead><tbody><tr><td align="left" 
valign="top"><p>org.apache.polygene.libraries</p></td><td align="left" 
valign="top"><p>org.apache.polygene.library.scripting</p></td><td align="left" 
valign="top"><p>0</p></td></tr></tbody></table></div></div><br 
class="table-break" /><p>The Scripting Library is a Generic mixin class that 
implements
+Composite interfaces by delegating to script functions using Java Scripting 
API. All Java Scripting API (JSR-223)
+implementations that support</p><pre class="programlisting brush: java">    
((javax.script.Invocable) scriptEngine).invokeFunction( functionName, arguments 
);</pre><p>should be supported. On Java.Net there is a <a class="ulink" 
href="https://java.net/projects/scripting/sources/svn/show/trunk/engines"; 
target="_top">list of Java Scripting API languages</a>.</p><p>It is important 
to understand that the ScriptEngines must be present on the classpath, or they 
will not be available,
+with the exception of JavaScript which uses the built-in Nashorn 
engine.</p><p>We welcome additional information and samples of languages that 
has been tried and tested.</p><div class="table"><a id="idm3973"></a><p 
class="title"><strong>Table 20. Language Support</strong></p><div 
class="table-contents"><table summary="Language Support" 
border="1"><colgroup><col class="col_1" /><col class="col_2" /><col 
class="col_3" /><col class="col_4" /><col class="col_5" 
/></colgroup><thead><tr><th align="left" valign="top">Language </th><th 
align="left" valign="top"> Supported </th><th align="left" valign="top"> Tested 
</th><th align="left" valign="top"> License </th><th align="left" valign="top"> 
Implementation</th></tr></thead><tbody><tr><td align="left" 
valign="top"><p>JavaScript</p></td><td align="left" 
valign="top"><p>Yes</p></td><td align="left" valign="top"><p>Yes</p></td><td 
align="left" valign="top"><p>?</p></td><td align="left" 
valign="top"><p>Nashorn, built-in Java 8 and later</p></
 td></tr><tr><td align="left" valign="top"><p>Groovy</p></td><td align="left" 
valign="top"><p>Yes</p></td><td align="left" valign="top"><p>Yes</p></td><td 
align="left" valign="top"><p>Apache</p></td><td align="left" 
valign="top"><p>Apache Groovy</p></td></tr><tr><td align="left" 
valign="top"><p>Ruby</p></td><td align="left" valign="top"><p>Yes</p></td><td 
align="left" valign="top"><p>No</p></td><td align="left" 
valign="top"><p>(EPL|GPL|LGPL) + Ruby</p></td><td align="left" 
valign="top"><p>JRuby</p></td></tr><tr><td align="left" 
valign="top"><p>Python</p></td><td align="left" valign="top"><p>Yes</p></td><td 
align="left" valign="top"><p>No</p></td><td align="left" valign="top"><p><a 
class="ulink" href="https://opensource.org/licenses/Python-2.0"; 
target="_top">Python</a></p></td><td align="left" valign="top"><p>Jython, must 
use jython-standalone</p></td></tr><tr><td align="left" 
valign="top"><p>Kotlin</p></td><td align="left" valign="top"><p>Yes</p></td><td 
align="left" valign="top"><p>
 No</p></td><td align="left" valign="top"><p>Apache</p></td><td align="left" 
valign="top"><p>Jetbrains</p></td></tr><tr><td align="left" 
valign="top"><p>Lua</p></td><td align="left" valign="top"><p>Yes</p></td><td 
align="left" valign="top"><p>No</p></td><td align="left" 
valign="top"><p>MIT</p></td><td align="left" 
valign="top"><p>luaj.org,</p></td></tr><tr><td align="left" 
valign="top"><p>Clojure</p></td><td align="left" 
valign="top"><p>Yes</p></td><td align="left" valign="top"><p>No</p></td><td 
align="left" valign="top"><p>CPL</p></td><td align="left" valign="top"><p><a 
class="ulink" href="https://github.com/pmf/clojure-jsr223"; 
target="_top">https://github.com/pmf/clojure-jsr223</a></p></td></tr></tbody></table></div></div><br
 class="table-break" /><p>The following languages may or may not be supported, 
and was found at <a class="ulink" 
href="https://java.net/projects/scripting/sources/svn/show/trunk/engines"; 
target="_top">Java.Net Scripting project</a></p><div class="table"><a id="
 idm4070"></a><p class="title"><strong>Table 21. Potential 
Languages</strong></p><div class="table-contents"><table summary="Potential 
Languages" border="1"><colgroup><col class="col_1" /><col class="col_2" /><col 
class="col_3" /></colgroup><thead><tr><th align="left" valign="top"> Language 
</th><th align="left" valign="top"> Location </th><th align="left" 
valign="top"> License</th></tr></thead><tbody><tr><td align="left" 
valign="top"><p>beanshell</p></td><td align="left" valign="top"><p></p></td><td 
align="left" valign="top"><p></p></td></tr><tr><td align="left" 
valign="top"><p>ejs</p></td><td align="left" valign="top"><p></p></td><td 
align="left" valign="top"><p></p></td></tr><tr><td align="left" 
valign="top"><p>freemarker</p></td><td align="left" valign="top"><p><a 
class="ulink" href="https://freemarker.apache.org"; 
target="_top">https://freemarker.apache.org</a></p></td><td align="left" 
valign="top"><p>Apache</p></td></tr><tr><td align="left" 
valign="top"><p>jacl</p></td><td ali
 gn="left" valign="top"><p></p></td><td align="left" 
valign="top"><p></p></td></tr><tr><td align="left" 
valign="top"><p>jaskell</p></td><td align="left" valign="top"><p><a 
class="ulink" href="https://github.com/MarchLiu/jaskell"; 
target="_top">https://github.com/MarchLiu/jaskell</a></p></td><td align="left" 
valign="top"><p>MIT</p></td></tr><tr><td align="left" 
valign="top"><p>jawk</p></td><td align="left" valign="top"><p></p></td><td 
align="left" valign="top"><p></p></td></tr><tr><td align="left" 
valign="top"><p>jelly</p></td><td align="left" valign="top"><p></p></td><td 
align="left" valign="top"><p>Apache</p></td></tr><tr><td align="left" 
valign="top"><p>jep</p></td><td align="left" valign="top"><p></p></td><td 
align="left" valign="top"><p></p></td></tr><tr><td align="left" 
valign="top"><p>jexl</p></td><td align="left" valign="top"><p><a class="ulink" 
href="https://commons.apache.org/jexl/"; 
target="_top">https://commons.apache.org/jexl/</a></p></td><td align="left" 
valign="top"><p>Ap
 ache</p></td></tr><tr><td align="left" valign="top"><p>jst</p></td><td 
align="left" valign="top"><p></p></td><td align="left" 
valign="top"><p></p></td></tr><tr><td align="left" 
valign="top"><p>judo</p></td><td align="left" valign="top"><p></p></td><td 
align="left" valign="top"><p></p></td></tr><tr><td align="left" 
valign="top"><p>juel</p></td><td align="left" valign="top"><p></p></td><td 
align="left" valign="top"><p></p></td></tr><tr><td align="left" 
valign="top"><p>ognl</p></td><td align="left" valign="top"><p><a class="ulink" 
href="https://commons.apache.org/ognl/"; 
target="_top">https://commons.apache.org/ognl/</a></p></td><td align="left" 
valign="top"><p>Apache</p></td></tr><tr><td align="left" 
valign="top"><p>pnuts</p></td><td align="left" valign="top"><p></p></td><td 
align="left" valign="top"><p></p></td></tr><tr><td align="left" 
valign="top"><p>scheme</p></td><td align="left" valign="top"><p><a 
class="ulink" href="http://sisc-scheme.org/"; 
target="_top">http://sisc-scheme.org/<
 /a></p></td><td align="left" valign="top"><p>(MPLv1.1</p></td></tr><tr><td 
align="left" valign="top"><p>GPLv2)</p></td><td align="left" 
valign="top"><p>velocity</p></td><td align="left" valign="top"><p><a 
class="ulink" href="https://velocity.apache.org"; 
target="_top">https://velocity.apache.org</a></p></td></tr><tr><td align="left" 
valign="top"><p>Apache</p></td><td align="left" 
valign="top"><p>xpath</p></td><td align="left" 
valign="top"><p></p></td></tr><tr><td align="left" valign="top"><p></p></td><td 
align="left" valign="top"><p>xslt</p></td><td align="left" 
valign="top"><p></p></td></tr></tbody></table></div></div><br 
class="table-break" /><div class="table"><a id="idm4214"></a><p 
class="title"><strong>Table 22. Not Compatible Languages</strong></p><div 
class="table-contents"><table summary="Not Compatible Languages" 
border="1"><colgroup><col class="col_1" /><col class="col_2" 
/></colgroup><thead><tr><th align="left" valign="top"> Language </th><th 
align="left" valign="top"> C
 omment</th></tr></thead><tbody><tr><td align="left" 
valign="top"><p>Java</p></td><td align="left" valign="top"><p>Implementation 
exists at <a class="ulink" href="https://github.com/nickman/javax-scripting/"; 
target="_top">https://github.com/nickman/javax-scripting/</a> which is forked 
from <a class="ulink" href="https://java.net/projects/scripting"; 
target="_top">https://java.net/projects/scripting</a>. It doesn’t support 
Invocable, and additional work on ScriptMixin is required to support this. 
Alternatively, fork the ScriptEngine implementation and support Invocable in 
it.</p></td></tr></tbody></table></div></div><br class="table-break" /><div 
class="section"><div class="titlepage"><div><div><h4 class="title"><a 
id="javascript"></a>Javascript</h4></div></div></div><p>In Javascript, we map 
directly to JS functions with the same name.</p><p>For the following Polygene 
composite type,</p><pre class="programlisting brush: java">package 
org.apache.polygene.library.scripting;
+  [...snip...]
+
+
+@Mixins(ScriptMixin.class)
+public interface HelloSpeaker
+{
+    String sayHello();
+}
+</pre><p>we need a implementation in a resource file (visible on classpath) 
named <code 
class="literal">org/apache/polygene/library/scripting/HelloSpeaker.js</code>
+that looks like this;</p><pre class="programlisting brush: 
javascript">function sayHello() {
+    return "Hello, JavaScript";
+}
+</pre></div><div class="section"><div class="titlepage"><div><div><h4 
class="title"><a id="groovy"></a>Groovy</h4></div></div></div><p>The Groovy 
Scripting Library is a Generic mixin that implements interfaces by delegating 
to Groovy code from classpath resources.</p><p>But before looking at how to use 
the Scripting library we’ll see that <span class="strong"><strong>you don’t 
need Scripting library at all if you
+simply need to use Groovy classes as Fragments</strong></span>. Groovy is a 
fully Java compatible language and can be used directly,
+similarly to Scala.</p><p>Then we’ll see how to use Groovy class scripts and 
method scripts.</p><p>All examples below are based on this type:</p><pre 
class="programlisting brush: java">package 
org.apache.polygene.library.scripting;
+  [...snip...]
+
+
+@Mixins(ScriptMixin.class)
+public interface HelloSpeaker
+{
+    String sayHello();
+}
+</pre></div><div class="section"><div class="titlepage"><div><div><h4 
class="title"><a id="_using_compiled_groovy_classes"></a>Using compiled Groovy 
classes</h4></div></div></div><p>To directly use compiled Groovy classes as 
Fragments you don’t need this library at all.</p><p>Having this Groovy class 
compiled ;</p><p><strong>HelloSpeakerMixin.groovy. </strong>
+</p><pre class="programlisting brush: groovy">class HelloSpeakerMixin
+    implements HelloSpeaker
+{
+
+    String sayHello() {
+        "Hello there, Groovy"
+    }
+}
+</pre><p>
+</p><p>assemble it directly:</p><pre class="programlisting brush: 
java">SingletonAssembler assembler = new SingletonAssembler()
+{
+    @Override
+    public void assemble( ModuleAssembly module )
+        throws AssemblyException
+    {
+        module.transients( HelloSpeaker.class ).withMixins( 
HelloSpeakerMixin.class );
+    }
+};
+HelloSpeaker speaker = assembler.module().newTransient( HelloSpeaker.class );
+assertThat( speaker.sayHello(), equalTo("Hello there, Groovy") );
+</pre></div><div class="section"><div class="titlepage"><div><div><h4 
class="title"><a id="_using_groovy_function_scripts"></a>Using Groovy function 
scripts</h4></div></div></div><p>Declare a Groovy function in a resource file 
located in the same package as the implemented type with the name <code 
class="literal">&lt;type&gt;.groovy</code>:</p><p><strong>HelloSpeaker.groovy. 
</strong>
+</p><pre class="programlisting brush: groovy">def sayHello() {
+    "Hello, Groovy"
+}
+</pre><p>
+</p><p>Then assemble it with the normal <code 
class="literal">ScriptMixin</code>:</p><pre class="programlisting brush: 
java">SingletonAssembler assembler = new SingletonAssembler()
+{
+    @Override
+    public void assemble( ModuleAssembly module )
+        throws AssemblyException
+    {
+        module.values( HelloSpeaker.class ).setMetaInfo( Scripting.GROOVY 
).withMixins( ScriptMixin.class );
+    }
+};
+HelloSpeaker speaker = assembler.module().newValue( HelloSpeaker.class );
+assertThat( speaker.sayHello(), equalTo("Hello, Groovy") );
+</pre></div></div><footer xmlns="" xmlns:exsl="http://exslt.org/common"; 
class="footer"><div class="container"><p class="text-muted">Copyright © 2017 
The Apache Software Foundation, Licensed under the <a 
href="http://www.apache.org/licenses/"; target="_blank">Apache License, Version 
2.0</a>.
+          Apache Polygene, Polygene, Apache, the Apache feather logo, and the 
Apache Polygene project logo are
+          trademarks of The Apache Software Foundation.
+          All other marks mentioned may be trademarks or registered trademarks 
of their respective owners.
+        </p></div></footer><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js";></script><script
 xmlns="" xmlns:exsl="http://exslt.org/common";>window.jQuery || 
document.write('&lt;script 
src="js/jquery-1.6.4.min.js"&gt;&lt;/script&gt;')</script><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"; 
integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb"
 crossorigin="anonymous"></script><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="bootstrap-3.3.7/js/bootstrap.min.js"></script><script xmlns="" 
xmlns:exsl="http://exslt.org/common"; 
src="js/ie10-viewport-bug-workaround.js"></script></body></html>
\ No newline at end of file

Reply via email to