deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r864998 [4/15] - in /websites/staging/deltaspike/trunk/content: ./ deltaspike/ deltaspike/draft/ deltaspike/resources/ draft/ resources/ resources/css/ resources/files/ resources/images/ resources/js/
Date Sun, 09 Jun 2013 09:26:33 GMT
Added: websites/staging/deltaspike/trunk/content/documentation.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/documentation.html (added)
+++ websites/staging/deltaspike/trunk/content/documentation.html Sun Jun  9 09:26:31 2013
@@ -0,0 +1,428 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="description" content="deltaspike-generate-pages">
+    <meta name="author" content="chm">
+
+    <title>Apache DeltaSpike - Documentation</title>
+
+    
+
+    
+    <!-- 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 &quot;License&quot;); 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 &quot;AS IS&quot; 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. -->
+
+    <!-- Styles -->
+    
+    <link href="./deltaspike/resources/css/bootstrap.css" rel="stylesheet">    
+    <!--<link href="./deltaspike/resources/css/prettify.css" rel="stylesheet" /> -->
+    <link href="./deltaspike/resources/css/codehilite.css" rel="stylesheet" />
+    <link href="./deltaspike/resources/css/bootstrap-responsive.css" rel="stylesheet">
+    <style type="text/css">
+        body {
+            padding-top: 60px;
+            padding-bottom: 40px;
+        }
+    </style>
+	<script type="text/javascript">
+
+	  var _gaq = _gaq || [];
+	  _gaq.push(['_setAccount', 'UA-36103647-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 class="navbar navbar-fixed-top">
+        <div class="navbar-inner">
+            <div class="container">
+                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                </a>
+                <a class="brand" href="index.html"><img src="./deltaspike/resources/images/deltaspike-logo-medium.png"/></a>
+                <div class="nav-collapse">
+                    <ul class="nav">
+                        <li class="active"><a href="./deltaspike/index.html">Home</a></li>
+                        <li><a href="./deltaspike/documentation.html">Documentation</a></li>
+                        <li><a href="./deltaspike/source.html">Source</a></li>
+                        <!-- <li><a href="./deltaspike/download.html">Download</a></li> -->
+                        <li><a href="./deltaspike/community.html">Community</a></li>
+                        <!-- <li><a href="./deltaspike/support.html">Support</a></li>  -->
+                        <li><a href="./deltaspike/news.html">News</a></li>
+                        <li><a href="./deltaspike/migration-guide.html">Migration</a></li>
+                    </ul>
+                </div><!--/.nav-collapse -->
+                <form id="search-form" action="http://www.google.com/search" method="get"  class="navbar-search pull-right" >
+                    <input value="incubator.apache.org/deltaspike" name="sitesearch" type="hidden"/>
+                    <input class="search-query" name="q" id="query" type="text" />
+                </form>
+            </div>
+        </div>
+    </div>
+
+    <div class="container">
+      <div class="row">
+          <div class="span12">
+              <div class="page-title">
+                <h1>Documentation</h1>
+              </div>
+              <div class="toc">
+<ul>
+<li><a href="#introduction">Introduction</a></li>
+<li><a href="#getting-started">Getting Started</a><ul>
+<li><a href="#project-configuration-without-maven">Project Configuration without Maven</a></li>
+<li><a href="#project-configuration-with-maven">Project Configuration with Maven</a><ul>
+<li><a href="#configuration-of-deltaspike-core">Configuration of DeltaSpike Core</a></li>
+<li><a href="#configuration-of-deltaspike-modules">Configuration of DeltaSpike Modules</a><ul>
+<li><a href="#security-module">Security Module</a></li>
+<li><a href="#jpa-module">JPA Module</a></li>
+<li><a href="#jsf-module">JSF Module</a></li>
+</ul>
+</li>
+<li><a href="#with-java-se">With Java SE</a><ul>
+<li><a href="#add-the-deltaspike-container-ctrl-api">Add the DeltaSpike Container Ctrl API</a></li>
+<li><a href="#add-a-cdi-container-container-ctrl-impl">Add a CDI container + Container Ctrl Impl</a></li>
+</ul>
+</li>
+<li><a href="#for-apache-openwebbeans">... for Apache OpenWebBeans</a></li>
+<li><a href="#for-jboss-weld-ri">... for JBoss Weld (RI)</a></li>
+</ul>
+</li>
+</ul>
+</li>
+<li><a href="#deployment-mode">Deployment mode</a><ul>
+<li><a href="#with-java-ee6">With Java EE6+</a></li>
+<li><a href="#with-java-ee5-or-servlet-containers">With Java EE5 or Servlet Containers</a></li>
+<li><a href="#standard-java-se6">Standard Java SE6+</a></li>
+</ul>
+</li>
+<li><a href="#start-a-cdi-container-using-java-se">Start a CDI container using Java SE</a></li>
+<li><a href="#module-overview">Module Overview</a><ul>
+<li><a href="#core-required">Core (required)</a></li>
+<li><a href="#security-optional">Security (optional)</a></li>
+<li><a href="#jpa-optional">JPA (optional)</a></li>
+<li><a href="#jsf-optional">JSF (optional)</a></li>
+<li><a href="#container-control-optional">Container Control (optional)</a></li>
+</ul>
+</li>
+<li><a href="#external">External</a><ul>
+<li><a href="#blogs">Blogs</a></li>
+</ul>
+</li>
+</ul>
+</div>
+<hr />
+<h1 id="introduction">Introduction</h1>
+<p>Apache DeltaSpike project has been created to support the development of portable CDI extensions that provide useful features for Java applications
+not provided out of the box by the CDI spec (Security, JPA, ...). CDI extensions created by the DeltaSpike community are packaged as modules.</p>
+<p>The goal of the project is also to provide useful classes to :</p>
+<div class="codehilite"><pre><span class="o">*</span> <span class="n">Boot</span> <span class="n">CDI</span> <span class="n">Container</span> <span class="p">(</span><span class="n">Weld</span><span class="p">,</span> <span class="n">OpenWebbeans</span><span class="p">,</span> <span class="n">OpenEJB</span><span class="p">)</span> <span class="k">for</span> <span class="n">Java</span> <span class="n">SE</span><span class="p">,</span>
+<span class="o">*</span> <span class="n">Stage</span> <span class="n">a</span> <span class="n">project</span><span class="p">,</span>
+<span class="o">*</span> <span class="n">Provide</span> <span class="n">new</span> <span class="n">scopes</span> <span class="p">(</span><span class="n">Window</span> <span class="n">Scope</span><span class="p">,</span> <span class="p">...),</span>
+<span class="o">*</span> <span class="n">Manage</span> <span class="n">messages</span> <span class="n">and</span> <span class="n">configurations</span>
+</pre></div>
+
+
+<p>The project is currently tested on different CDI implementations like Apache OpenWebBeans and JBoss Weld, and also on different Java Web containers like Apache TomEE or JavaEE, JBoss-AS7, Oracle GlassFish 3.1+, Oracle Weblogic Server 12c.</p>
+<p>[TODO] Define what portable means like also CDI extension and refers to documentation links</p>
+<h1 id="getting-started">Getting Started</h1>
+<p>A DeltaSpike project can be designed using or not Apache Maven and consists in a collection of jar files. Depending on your needs, you will package DeltaSpike core jar (api and impl) files or extend
+the list with DeltaSpike modules. DeltaSpike Api and Impl are mandatory and provide code required to benefits of portable CDI extensions or useful features
+created.</p>
+<p>Remark : For Java SE, an additional step is required as you have to select the CDI implementation of your choice to boot a CDI container.</p>
+<p>[TODO] Add a section or remark to explain how to package &amp; deploy DeltaSpike in an OSGI environment (Apache Felix, Apache Karaf, Apache ServiceMix)</p>
+<h2 id="project-configuration-without-maven">Project Configuration without Maven</h2>
+<p>You can manually download all JARs described above from the maven repository or you get <a href="source.html">the source-code</a> and <a href="build.html">build</a> DeltaSpike manually.</p>
+<h2 id="project-configuration-with-maven">Project Configuration with Maven</h2>
+<p><strong>Hint:</strong>
+In the listings below replace the placeholders for the version with the version of your choice or use:</p>
+<div class="codehilite"><pre><span class="nt">&lt;properties&gt;</span>
+    <span class="nt">&lt;deltaspike.version&gt;</span>0.4-incubating-SNAPSHOT<span class="nt">&lt;/deltaspike.version&gt;</span>
+<span class="nt">&lt;/properties&gt;</span>
+</pre></div>
+
+
+<h3 id="configuration-of-deltaspike-core">Configuration of DeltaSpike Core</h3>
+<div class="codehilite"><pre><span class="nt">&lt;dependency&gt;</span>
+    <span class="nt">&lt;groupId&gt;</span>org.apache.deltaspike.core<span class="nt">&lt;/groupId&gt;</span>
+    <span class="nt">&lt;artifactId&gt;</span>deltaspike-core-api<span class="nt">&lt;/artifactId&gt;</span>
+    <span class="nt">&lt;version&gt;</span><span class="cp">${</span><span class="n">deltaspike</span><span class="o">.</span><span class="n">version</span><span class="cp">}</span><span class="nt">&lt;/version&gt;</span>
+    <span class="nt">&lt;scope&gt;</span>compile<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+
+<span class="nt">&lt;dependency&gt;</span>
+    <span class="nt">&lt;groupId&gt;</span>org.apache.deltaspike.core<span class="nt">&lt;/groupId&gt;</span>
+    <span class="nt">&lt;artifactId&gt;</span>deltaspike-core-impl<span class="nt">&lt;/artifactId&gt;</span>
+    <span class="nt">&lt;version&gt;</span><span class="cp">${</span><span class="n">deltaspike</span><span class="o">.</span><span class="n">version</span><span class="cp">}</span><span class="nt">&lt;/version&gt;</span>
+    <span class="nt">&lt;scope&gt;</span>runtime<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+</pre></div>
+
+
+<h3 id="configuration-of-deltaspike-modules">Configuration of DeltaSpike Modules</h3>
+<h4 id="security-module">Security Module</h4>
+<div class="codehilite"><pre><span class="nt">&lt;dependency&gt;</span>
+    <span class="nt">&lt;groupId&gt;</span>org.apache.deltaspike.modules<span class="nt">&lt;/groupId&gt;</span>
+    <span class="nt">&lt;artifactId&gt;</span>deltaspike-security-module-api<span class="nt">&lt;/artifactId&gt;</span>
+    <span class="nt">&lt;version&gt;</span><span class="cp">${</span><span class="n">deltaspike</span><span class="o">.</span><span class="n">version</span><span class="cp">}</span><span class="nt">&lt;/version&gt;</span>
+    <span class="nt">&lt;scope&gt;</span>compile<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+
+<span class="nt">&lt;dependency&gt;</span>
+    <span class="nt">&lt;groupId&gt;</span>org.apache.deltaspike.modules<span class="nt">&lt;/groupId&gt;</span>
+    <span class="nt">&lt;artifactId&gt;</span>deltaspike-security-module-impl<span class="nt">&lt;/artifactId&gt;</span>
+    <span class="nt">&lt;version&gt;</span><span class="cp">${</span><span class="n">deltaspike</span><span class="o">.</span><span class="n">version</span><span class="cp">}</span><span class="nt">&lt;/version&gt;</span>
+    <span class="nt">&lt;scope&gt;</span>runtime<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+</pre></div>
+
+
+<h4 id="jpa-module">JPA Module</h4>
+<div class="codehilite"><pre><span class="nt">&lt;dependency&gt;</span>
+    <span class="nt">&lt;groupId&gt;</span>org.apache.deltaspike.modules<span class="nt">&lt;/groupId&gt;</span>
+    <span class="nt">&lt;artifactId&gt;</span>deltaspike-jpa-module-api<span class="nt">&lt;/artifactId&gt;</span>
+    <span class="nt">&lt;version&gt;</span><span class="cp">${</span><span class="n">deltaspike</span><span class="o">.</span><span class="n">version</span><span class="cp">}</span><span class="nt">&lt;/version&gt;</span>
+    <span class="nt">&lt;scope&gt;</span>compile<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+
+<span class="nt">&lt;dependency&gt;</span>
+    <span class="nt">&lt;groupId&gt;</span>org.apache.deltaspike.modules<span class="nt">&lt;/groupId&gt;</span>
+    <span class="nt">&lt;artifactId&gt;</span>deltaspike-jpa-module-impl<span class="nt">&lt;/artifactId&gt;</span>
+    <span class="nt">&lt;version&gt;</span><span class="cp">${</span><span class="n">deltaspike</span><span class="o">.</span><span class="n">version</span><span class="cp">}</span><span class="nt">&lt;/version&gt;</span>
+    <span class="nt">&lt;scope&gt;</span>runtime<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+</pre></div>
+
+
+<h4 id="jsf-module">JSF Module</h4>
+<div class="codehilite"><pre><span class="nt">&lt;dependency&gt;</span>
+    <span class="nt">&lt;groupId&gt;</span>org.apache.deltaspike.modules<span class="nt">&lt;/groupId&gt;</span>
+    <span class="nt">&lt;artifactId&gt;</span>deltaspike-jsf-module-api<span class="nt">&lt;/artifactId&gt;</span>
+    <span class="nt">&lt;version&gt;</span><span class="cp">${</span><span class="n">deltaspike</span><span class="o">.</span><span class="n">version</span><span class="cp">}</span><span class="nt">&lt;/version&gt;</span>
+    <span class="nt">&lt;scope&gt;</span>compile<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+
+<span class="nt">&lt;dependency&gt;</span>
+    <span class="nt">&lt;groupId&gt;</span>org.apache.deltaspike.modules<span class="nt">&lt;/groupId&gt;</span>
+    <span class="nt">&lt;artifactId&gt;</span>deltaspike-jsf-module-impl<span class="nt">&lt;/artifactId&gt;</span>
+    <span class="nt">&lt;version&gt;</span><span class="cp">${</span><span class="n">deltaspike</span><span class="o">.</span><span class="n">version</span><span class="cp">}</span><span class="nt">&lt;/version&gt;</span>
+    <span class="nt">&lt;scope&gt;</span>runtime<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+</pre></div>
+
+
+<h3 id="with-java-se">With Java SE</h3>
+<p>To use DeltaSpike with Java SE, we must provide additional jars file corresponding to the DeltaSpike CDI Controller API
+and its implementation. The Controller uses Java Services to resolve the CDI container (<a href="http://docs.jboss.org/weld/reference/1.1.5.Final/en-US/html/">JBoss Weld</a>, <a href="http://openwebbeans.apache.org">Apache OpenWebbeans</a> (and <a href="http://openejb.apache.org">Apache OpenEJB</a>)) and
+implementation contains the code to manage the <a href="#container-control-optional">CDI container and contexts</a>.</p>
+<p><strong>Hint:</strong>
+In the listings below replace the placeholders for the version with the version of your choice or use:</p>
+<div class="codehilite"><pre><span class="nt">&lt;properties&gt;</span>
+    <span class="nt">&lt;deltaspike.version&gt;</span>incubating-0.4-SNAPSHOT<span class="nt">&lt;/deltaspike.version&gt;</span>
+    <span class="nt">&lt;owb.version&gt;</span>1.1.6<span class="nt">&lt;/owb.version&gt;</span>
+    <span class="nt">&lt;weld.version&gt;</span>1.1.9.Final<span class="nt">&lt;/weld.version&gt;</span>
+<span class="nt">&lt;/properties&gt;</span>
+</pre></div>
+
+
+<h4 id="add-the-deltaspike-container-ctrl-api">Add the DeltaSpike Container Ctrl API</h4>
+<div class="codehilite"><pre><span class="nt">&lt;dependency&gt;</span>
+    <span class="nt">&lt;groupId&gt;</span>org.apache.deltaspike.cdictrl<span class="nt">&lt;/groupId&gt;</span>
+    <span class="nt">&lt;artifactId&gt;</span>deltaspike-cdictrl-api<span class="nt">&lt;/artifactId&gt;</span>
+    <span class="nt">&lt;version&gt;</span><span class="cp">${</span><span class="n">deltaspike</span><span class="o">.</span><span class="n">version</span><span class="cp">}</span><span class="nt">&lt;/version&gt;</span>
+    <span class="nt">&lt;scope&gt;</span>compile<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+</pre></div>
+
+
+<h4 id="add-a-cdi-container-container-ctrl-impl">Add a CDI container + Container Ctrl Impl</h4>
+<h3 id="for-apache-openwebbeans">... for Apache OpenWebBeans</h3>
+<div class="codehilite"><pre><span class="nt">&lt;dependency&gt;</span>
+    <span class="nt">&lt;groupId&gt;</span>org.apache.openwebbeans<span class="nt">&lt;/groupId&gt;</span>
+    <span class="nt">&lt;artifactId&gt;</span>openwebbeans-impl<span class="nt">&lt;/artifactId&gt;</span>
+    <span class="nt">&lt;version&gt;</span><span class="cp">${</span><span class="n">owb</span><span class="o">.</span><span class="n">version</span><span class="cp">}</span><span class="nt">&lt;/version&gt;</span>
+    <span class="nt">&lt;scope&gt;</span>runtime<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+
+<span class="nt">&lt;dependency&gt;</span>
+    <span class="nt">&lt;groupId&gt;</span>org.apache.openwebbeans<span class="nt">&lt;/groupId&gt;</span>
+    <span class="nt">&lt;artifactId&gt;</span>openwebbeans-spi<span class="nt">&lt;/artifactId&gt;</span>
+    <span class="nt">&lt;version&gt;</span><span class="cp">${</span><span class="n">owb</span><span class="o">.</span><span class="n">version</span><span class="cp">}</span><span class="nt">&lt;/version&gt;</span>
+    <span class="nt">&lt;scope&gt;</span>compile<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+
+<span class="nt">&lt;dependency&gt;</span>
+    <span class="nt">&lt;groupId&gt;</span>org.apache.deltaspike.cdictrl<span class="nt">&lt;/groupId&gt;</span>
+    <span class="nt">&lt;artifactId&gt;</span>deltaspike-cdictrl-owb<span class="nt">&lt;/artifactId&gt;</span>
+    <span class="nt">&lt;version&gt;</span><span class="cp">${</span><span class="n">deltaspike</span><span class="o">.</span><span class="n">version</span><span class="cp">}</span><span class="nt">&lt;/version&gt;</span>
+    <span class="nt">&lt;scope&gt;</span>runtime<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+</pre></div>
+
+
+<h3 id="for-jboss-weld-ri">... for JBoss Weld (RI)</h3>
+<div class="codehilite"><pre><span class="nt">&lt;dependency&gt;</span>
+    <span class="nt">&lt;groupId&gt;</span>org.apache.deltaspike.cdictrl<span class="nt">&lt;/groupId&gt;</span>
+    <span class="nt">&lt;artifactId&gt;</span>deltaspike-cdictrl-weld<span class="nt">&lt;/artifactId&gt;</span>
+    <span class="nt">&lt;version&gt;</span><span class="cp">${</span><span class="n">deltaspike</span><span class="o">.</span><span class="n">version</span><span class="cp">}</span><span class="nt">&lt;/version&gt;</span>
+    <span class="nt">&lt;scope&gt;</span>runtime<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+
+<span class="nt">&lt;dependency&gt;</span>
+    <span class="nt">&lt;groupId&gt;</span>org.jboss.weld.se<span class="nt">&lt;/groupId&gt;</span>
+    <span class="nt">&lt;artifactId&gt;</span>weld-se<span class="nt">&lt;/artifactId&gt;</span>
+    <span class="nt">&lt;version&gt;</span><span class="cp">${</span><span class="n">weld</span><span class="o">.</span><span class="n">version</span><span class="cp">}</span><span class="nt">&lt;/version&gt;</span>
+    <span class="nt">&lt;scope&gt;</span>runtime<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+</pre></div>
+
+
+<h1 id="deployment-mode">Deployment mode</h1>
+<p>DeltaSpike can be deployed in different Java environments. Depending which Java container and release you are using, the procedure which is different
+is explained here after.</p>
+<h2 id="with-java-ee6">With Java EE6+</h2>
+<p>If you are using DeltaSpike in a Java EE6 environment, you don't need to configure a CDI implementation explicitly because it's shipped with the container.</p>
+<h2 id="with-java-ee5-or-servlet-containers">With Java EE5 or Servlet Containers</h2>
+<p>Java EE5 application servers as well as pure servlet containers like Apache Tomcat / Eclipse Jetty don't provide a CDI implementation out-of-the-box.
+So don't forget to setup the CDI implementation of your choice.</p>
+<h2 id="standard-java-se6">Standard Java SE6+</h2>
+<p>If you are only using a JDK and runs Java in a standalone or standard mode (Java SE), then DeltaSpike will allow you to boot a CDI implementation where you can use Dependency Injection with
+a Bean Manager. Such an example will be presented at the next section.</p>
+<h1 id="start-a-cdi-container-using-java-se">Start a CDI container using Java SE</h1>
+<p>This code snippet show you how with a Java MainApplication a CDI container can be started (= boot) by DeltaSpike using Java SE and how you
+ define a CDI scope and resolve beans injected.</p>
+<p><strong>Hint</strong>: To bootstrap a CDI container in your Java application, you just need to instantiate the <code>CdiContainer</code> and call the <code>#boot</code> method.</p>
+<div class="codehilite"><pre><span class="kn">import</span> <span class="nn">org.apache.deltaspike.cdise.api.CdiContainer</span><span class="o">;</span>
+<span class="kn">import</span> <span class="nn">org.apache.deltaspike.cdise.api.CdiContainerLoader</span><span class="o">;</span>
+
+<span class="kd">public</span> <span class="kd">class</span> <span class="nc">MainApp</span> <span class="o">{</span>
+    <span class="kd">public</span> <span class="kd">static</span> <span class="kt">void</span> <span class="nf">main</span><span class="o">(</span><span class="n">String</span><span class="o">[]</span> <span class="n">args</span><span class="o">)</span> <span class="o">{</span>
+
+        <span class="n">CdiContainer</span> <span class="n">CdiContainer</span> <span class="o">=</span> <span class="n">CdiContainerLoader</span><span class="o">.</span><span class="na">getCdiContainer</span><span class="o">();</span>
+        <span class="n">CdiContainer</span><span class="o">.</span><span class="na">boot</span><span class="o">();</span>
+
+        <span class="c1">// You can use CDI here</span>
+
+        <span class="n">CdiContainer</span><span class="o">.</span><span class="na">shutdown</span><span class="o">();</span>
+    <span class="o">}</span>
+<span class="o">}</span>
+</pre></div>
+
+
+<p>When <code>#boot</code> is called, the <code>CdiContainer</code> will scan CDI enabled archives for beans and CDI extensions.</p>
+<p><strong>Note</strong>: Booting the container does <i>not</i> automatically start all CDI Contexts!</p>
+<p>Example for starting the application-context:</p>
+<div class="codehilite"><pre><span class="kn">import</span> <span class="nn">org.apache.deltaspike.cdise.api.CdiContainer</span><span class="o">;</span>
+<span class="kn">import</span> <span class="nn">org.apache.deltaspike.cdise.api.CdiContainerLoader</span><span class="o">;</span>
+<span class="kn">import</span> <span class="nn">org.apache.deltaspike.cdise.api.ContextControl</span><span class="o">;</span>
+<span class="kn">import</span> <span class="nn">javax.enterprise.context.ApplicationScoped</span><span class="o">;</span>
+
+<span class="kd">public</span> <span class="kd">class</span> <span class="nc">MainApp</span> <span class="o">{</span>
+    <span class="kd">public</span> <span class="kd">static</span> <span class="kt">void</span> <span class="nf">main</span><span class="o">(</span><span class="n">String</span><span class="o">[]</span> <span class="n">args</span><span class="o">)</span> <span class="o">{</span>
+
+        <span class="n">CdiContainer</span> <span class="n">CdiContainer</span> <span class="o">=</span> <span class="n">CdiContainerLoader</span><span class="o">.</span><span class="na">getCdiContainer</span><span class="o">();</span>
+        <span class="n">CdiContainer</span><span class="o">.</span><span class="na">boot</span><span class="o">();</span>
+
+        <span class="c1">// Starting the application-context allows to use @ApplicationScoped beans</span>
+        <span class="n">ContextControl</span> <span class="n">contextControl</span> <span class="o">=</span> <span class="n">cdiContainer</span><span class="o">.</span><span class="na">getContextControl</span><span class="o">();</span>
+        <span class="n">contextControl</span><span class="o">.</span><span class="na">startContext</span><span class="o">(</span><span class="n">ApplicationScoped</span><span class="o">.</span><span class="na">class</span><span class="o">);</span>
+
+        <span class="c1">// You can use CDI here</span>
+
+        <span class="n">CdiContainer</span><span class="o">.</span><span class="na">shutdown</span><span class="o">();</span>
+    <span class="o">}</span>
+<span class="o">}</span>
+</pre></div>
+
+
+<p>To resolve a bean of this project, you can use the <code>BeanProvider</code> provided by DeltaSpike.
+The following example shows how to resolve the a bean without qualifiers. It depends on the application if <code>EchoService</code> is a concrete implementation or just an interface. In case of an interface the corresponding implementation will be resolved.
+The resolved bean is a normal CDI bean which means you can use all CDI concepts like <code>@Inject</code> in the class (and you don't need further usages of <code>BeanProvider</code>).</p>
+<div class="codehilite"><pre><span class="n">EchoService</span> <span class="n">echoService</span> <span class="o">=</span> <span class="n">BeanProvider</span><span class="o">.</span><span class="na">getContextualReference</span><span class="o">(</span><span class="n">EchoService</span><span class="o">.</span><span class="na">class</span><span class="o">,</span> <span class="kc">false</span><span class="o">);</span>
+</pre></div>
+
+
+<p>Before the application exits, you have to call <code>#shutdown</code> to destroy beans,... in a well-ordered fashion.</p>
+<h1 id="module-overview">Module Overview</h1>
+<p>The core features of DeltaSpike project are packaged under the following different modules. Some of them are mandatory while others are optional</p>
+<h2 id="core-required">Core (required)</h2>
+<p>Definition : Contain the API and util classes of DeltaSpike project</p>
+<p>Features :</p>
+<ul>
+<li>BeanProvider &amp; Manager</li>
+<li>ProjectStage</li>
+<li>Config &amp; Property</li>
+<li>Messages &amp; I18n</li>
+<li>Exception Handling &amp; Control</li>
+</ul>
+<p><a class="btn" href="core.html">View details »</a></p>
+<h2 id="security-optional">Security (optional)</h2>
+<p>Definition : Intercept and check security</p>
+<p>Features :</p>
+<p>*</p>
+<p><a class="btn" href="security.html">View details »</a></p>
+<h2 id="jpa-optional">JPA (optional)</h2>
+<p>Definition :</p>
+<p>Features :</p>
+<p>*</p>
+<p><a class="btn" href="jpa.html">View details »</a></p>
+<h2 id="jsf-optional">JSF (optional)</h2>
+<p>Definition :</p>
+<p>Features :</p>
+<p>*</p>
+<p><a class="btn" href="jsf.html">View details »</a></p>
+<h2 id="container-control-optional">Container Control (optional)</h2>
+<p>Definition :</p>
+<p>Features :</p>
+<p>*</p>
+<p><a class="btn" href="container-control.html">View details »</a></p>
+<h1 id="external">External</h1>
+<h2 id="blogs">Blogs</h2>
+<ul>
+<li><a href="http://os890.blogspot.com/search/label/deltaspike">http://os890.blogspot.com/search/label/deltaspike</a></li>
+</ul>
+          </div>
+      </div>
+
+      <hr>
+
+      <footer>
+        <p>Copyright © 20011-2012 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.</p>
+        <p>Apache and the Apache feather logo are trademarks of The Apache Software Foundation.</p>
+      </footer>
+
+    </div> <!-- /container -->
+
+    <!-- Javascript
+    ================================================== -->
+    <!-- Placed at the end of the document so the pages load faster -->
+    <!--<script src="./deltaspike/resources/js/prettyfy.js"></script> -->
+    <script src="./deltaspike/resources/js/prettyprint.js"></script>
+    <script src="./deltaspike/resources/js/jquery.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-transition.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-alert.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-modal.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-dropdown.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-scrollspy.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-tab.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-tooltip.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-popover.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-button.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-collapse.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-carousel.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-typeahead.js"></script>
+
+</body>
+</html>
\ No newline at end of file

Added: websites/staging/deltaspike/trunk/content/download.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/download.html (added)
+++ websites/staging/deltaspike/trunk/content/download.html Sun Jun  9 09:26:31 2013
@@ -0,0 +1,119 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="description" content="deltaspike-generate-pages">
+    <meta name="author" content="chm">
+
+    <title>Apache DeltaSpike - Download</title>
+
+    
+
+    
+    <!-- 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 &quot;License&quot;); 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 &quot;AS IS&quot; 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. -->
+
+    <!-- Styles -->
+    
+    <link href="./deltaspike/resources/css/bootstrap.css" rel="stylesheet">    
+    <!--<link href="./deltaspike/resources/css/prettify.css" rel="stylesheet" /> -->
+    <link href="./deltaspike/resources/css/codehilite.css" rel="stylesheet" />
+    <link href="./deltaspike/resources/css/bootstrap-responsive.css" rel="stylesheet">
+    <style type="text/css">
+        body {
+            padding-top: 60px;
+            padding-bottom: 40px;
+        }
+    </style>
+	<script type="text/javascript">
+
+	  var _gaq = _gaq || [];
+	  _gaq.push(['_setAccount', 'UA-36103647-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 class="navbar navbar-fixed-top">
+        <div class="navbar-inner">
+            <div class="container">
+                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                </a>
+                <a class="brand" href="index.html"><img src="./deltaspike/resources/images/deltaspike-logo-medium.png"/></a>
+                <div class="nav-collapse">
+                    <ul class="nav">
+                        <li class="active"><a href="./deltaspike/index.html">Home</a></li>
+                        <li><a href="./deltaspike/documentation.html">Documentation</a></li>
+                        <li><a href="./deltaspike/source.html">Source</a></li>
+                        <!-- <li><a href="./deltaspike/download.html">Download</a></li> -->
+                        <li><a href="./deltaspike/community.html">Community</a></li>
+                        <!-- <li><a href="./deltaspike/support.html">Support</a></li>  -->
+                        <li><a href="./deltaspike/news.html">News</a></li>
+                        <li><a href="./deltaspike/migration-guide.html">Migration</a></li>
+                    </ul>
+                </div><!--/.nav-collapse -->
+                <form id="search-form" action="http://www.google.com/search" method="get"  class="navbar-search pull-right" >
+                    <input value="incubator.apache.org/deltaspike" name="sitesearch" type="hidden"/>
+                    <input class="search-query" name="q" id="query" type="text" />
+                </form>
+            </div>
+        </div>
+    </div>
+
+    <div class="container">
+      <div class="row">
+          <div class="span12">
+              <div class="page-title">
+                <h1>Download</h1>
+              </div>
+              <h1 id="latest-releases">Latest Releases</h1>
+<p>TBD</p>
+<h1 id="binary-distribution">Binary Distribution</h1>
+<p>TBD</p>
+<h1 id="source-distribution">Source Distribution</h1>
+<p>TBD</p>
+          </div>
+      </div>
+
+      <hr>
+
+      <footer>
+        <p>Copyright © 20011-2012 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.</p>
+        <p>Apache and the Apache feather logo are trademarks of The Apache Software Foundation.</p>
+      </footer>
+
+    </div> <!-- /container -->
+
+    <!-- Javascript
+    ================================================== -->
+    <!-- Placed at the end of the document so the pages load faster -->
+    <!--<script src="./deltaspike/resources/js/prettyfy.js"></script> -->
+    <script src="./deltaspike/resources/js/prettyprint.js"></script>
+    <script src="./deltaspike/resources/js/jquery.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-transition.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-alert.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-modal.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-dropdown.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-scrollspy.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-tab.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-tooltip.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-popover.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-button.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-collapse.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-carousel.js"></script>
+    <script src="./deltaspike/resources/js/bootstrap-typeahead.js"></script>
+
+</body>
+</html>
\ No newline at end of file

Added: websites/staging/deltaspike/trunk/content/draft/backlog.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/draft/backlog.html (added)
+++ websites/staging/deltaspike/trunk/content/draft/backlog.html Sun Jun  9 09:26:31 2013
@@ -0,0 +1,208 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="description" content="deltaspike-generate-pages">
+    <meta name="author" content="chm">
+
+    <title>Apache DeltaSpike - Backlog</title>
+
+    
+
+    
+    <!-- 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 &quot;License&quot;); 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 &quot;AS IS&quot; 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. -->
+
+    <!-- Styles -->
+    
+    <link href="./../deltaspike/resources/css/bootstrap.css" rel="stylesheet">    
+    <!--<link href="./../deltaspike/resources/css/prettify.css" rel="stylesheet" /> -->
+    <link href="./../deltaspike/resources/css/codehilite.css" rel="stylesheet" />
+    <link href="./../deltaspike/resources/css/bootstrap-responsive.css" rel="stylesheet">
+    <style type="text/css">
+        body {
+            padding-top: 60px;
+            padding-bottom: 40px;
+        }
+    </style>
+	<script type="text/javascript">
+
+	  var _gaq = _gaq || [];
+	  _gaq.push(['_setAccount', 'UA-36103647-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 class="navbar navbar-fixed-top">
+        <div class="navbar-inner">
+            <div class="container">
+                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                </a>
+                <a class="brand" href="index.html"><img src="./../deltaspike/resources/images/deltaspike-logo-medium.png"/></a>
+                <div class="nav-collapse">
+                    <ul class="nav">
+                        <li class="active"><a href="./../deltaspike/index.html">Home</a></li>
+                        <li><a href="./../deltaspike/documentation.html">Documentation</a></li>
+                        <li><a href="./../deltaspike/source.html">Source</a></li>
+                        <!-- <li><a href="./../deltaspike/download.html">Download</a></li> -->
+                        <li><a href="./../deltaspike/community.html">Community</a></li>
+                        <!-- <li><a href="./../deltaspike/support.html">Support</a></li>  -->
+                        <li><a href="./../deltaspike/news.html">News</a></li>
+                        <li><a href="./../deltaspike/migration-guide.html">Migration</a></li>
+                    </ul>
+                </div><!--/.nav-collapse -->
+                <form id="search-form" action="http://www.google.com/search" method="get"  class="navbar-search pull-right" >
+                    <input value="incubator.apache.org/deltaspike" name="sitesearch" type="hidden"/>
+                    <input class="search-query" name="q" id="query" type="text" />
+                </form>
+            </div>
+        </div>
+    </div>
+
+    <div class="container">
+      <div class="row">
+          <div class="span12">
+              <div class="page-title">
+                <h1>Backlog</h1>
+              </div>
+              <h1 id="deltaspike-forge-plugin">DeltaSpike-Forge Plugin</h1>
+<h2 id="possible-setup-for-v01">Possible Setup for v0.1</h2>
+<ul>
+<li>Project-Setup</li>
+<li>Deactivate DeltaSpike Features
+   <strong> Deactivate @Exclude extension
+   </strong> List deactivatable classes
+   <strong> Deactivate class
+   </strong> Re-activate class</li>
+<li>Project-Stage
+   <strong> Show current project-stage
+   </strong> Show project-stage key
+   <strong> Show how to set the project stage
+   </strong> Create custom project-stage</li>
+<li>Low-Level Config
+   <strong> Simulate property-lookup
+   </strong> Show config-sources
+   ** Create custom config-source</li>
+<li>Config
+   ** List all DeltaSpikeConfig implementations</li>
+</ul>
+<h1 id="osgi-integration">OSGI integration</h1>
+<p>Could be nice to be able to get OSGi services injected. A proposal is here: https://gist.github.com/1515423</p>
+<p>Bundle and BundleContext could be injectable too.</p>
+<p>A bundlelistener and a servicelistener could send CDI event to notify of OSGi states.</p>
+<h1 id="spring-cdi-integration">Spring CDI Integration</h1>
+<h2 id="seam-spring"><em>Seam Spring</em></h2>
+<h3 id="existing-features-as-of-seam-spring-31"><em>Existing features (as of Seam Spring 3.1)</em></h3>
+<table>
+<thead>
+<tr>
+<th></th>
+<th>Feature &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</th>
+<th></th>
+<th>"Requires" changes</th>
+<th></th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td>[Access to Spring web application context</td>
+<td>http://docs.jboss.org/seam/3/spring/latest/reference/en-US/html/spring-usage.html#d0e92]&nbsp; \</td>
+<td></td>
+<td></td>
+<td></td>
+</tr>
+<tr>
+<td>(@Produce @Web @SpringContext)</td>
+<td>n</td>
+<td>10</td>
+<td></td>
+<td></td>
+</tr>
+<tr>
+<td>[Exposure of Spring beans as CDI beans&nbsp;(availability for injection)</td>
+<td>http://docs.jboss.org/seam/3/spring/latest/reference/en-US/html/spring-usage.html#d0e92]\</td>
+<td></td>
+<td></td>
+<td></td>
+</tr>
+<tr>
+<td>(resource locator pattern - @Produce @SpringBean )</td>
+<td>n</td>
+<td>10</td>
+<td></td>
+<td></td>
+</tr>
+<tr>
+<td>[Exposure of CDI beans as Spring beans (and availability for injection)</td>
+<td>http://docs.jboss.org/seam/3/spring/latest/reference/en-US/html/spring-usage.html#d0e257]\</td>
+<td></td>
+<td></td>
+<td></td>
+</tr>
+<tr>
+<td>(FactoryBean and namespace support)</td>
+<td>n</td>
+<td>10</td>
+<td></td>
+<td></td>
+</tr>
+<tr>
+<td>Bean Manager accessor - to be migrated to DeltaSpike facilities</td>
+<td>n</td>
+<td>10</td>
+<td></td>
+<td></td>
+</tr>
+</tbody>
+</table>
+<h3 id="planned-features">Planned features</h3>
+<p>From the [module site|http://seamframework.org/Seam3/SpringModule] , as well as new</p>
+<p>|| Feature &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; || "Requires" changes || Ranking || Objections ||
+| CDI eventing/Spring eventing bridge | n/a | 8 | |
+| Spring aspect/CDI interceptors bridge\ | n/a \ | 8 \ | |</p>
+          </div>
+      </div>
+
+      <hr>
+
+      <footer>
+        <p>Copyright © 20011-2012 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.</p>
+        <p>Apache and the Apache feather logo are trademarks of The Apache Software Foundation.</p>
+      </footer>
+
+    </div> <!-- /container -->
+
+    <!-- Javascript
+    ================================================== -->
+    <!-- Placed at the end of the document so the pages load faster -->
+    <!--<script src="./../deltaspike/resources/js/prettyfy.js"></script> -->
+    <script src="./../deltaspike/resources/js/prettyprint.js"></script>
+    <script src="./../deltaspike/resources/js/jquery.js"></script>
+    <script src="./../deltaspike/resources/js/bootstrap-transition.js"></script>
+    <script src="./../deltaspike/resources/js/bootstrap-alert.js"></script>
+    <script src="./../deltaspike/resources/js/bootstrap-modal.js"></script>
+    <script src="./../deltaspike/resources/js/bootstrap-dropdown.js"></script>
+    <script src="./../deltaspike/resources/js/bootstrap-scrollspy.js"></script>
+    <script src="./../deltaspike/resources/js/bootstrap-tab.js"></script>
+    <script src="./../deltaspike/resources/js/bootstrap-tooltip.js"></script>
+    <script src="./../deltaspike/resources/js/bootstrap-popover.js"></script>
+    <script src="./../deltaspike/resources/js/bootstrap-button.js"></script>
+    <script src="./../deltaspike/resources/js/bootstrap-collapse.js"></script>
+    <script src="./../deltaspike/resources/js/bootstrap-carousel.js"></script>
+    <script src="./../deltaspike/resources/js/bootstrap-typeahead.js"></script>
+
+</body>
+</html>
\ No newline at end of file



Mime
View raw message