Author: rafabene
Date: Wed Nov 26 20:21:53 2014
New Revision: 1641921
URL: http://svn.apache.org/r1641921
Log:
Site checkin for project Apache DeltaSpike - Documentation
Added:
deltaspike/site/trunk/content/staging/documentation/addons.html
deltaspike/site/trunk/content/staging/documentation/articles.html
deltaspike/site/trunk/content/staging/documentation/bean-validation.html
deltaspike/site/trunk/content/staging/documentation/build.html
deltaspike/site/trunk/content/staging/documentation/cdiimp.html
deltaspike/site/trunk/content/staging/documentation/configuration.html
deltaspike/site/trunk/content/staging/documentation/configure.html
deltaspike/site/trunk/content/staging/documentation/container-control.html
deltaspike/site/trunk/content/staging/documentation/core.html
deltaspike/site/trunk/content/staging/documentation/data.html
deltaspike/site/trunk/content/staging/documentation/deltaspike_1.0.2.html
deltaspike/site/trunk/content/staging/documentation/deltaspike_1.0.3.html
deltaspike/site/trunk/content/staging/documentation/examples.html
deltaspike/site/trunk/content/staging/documentation/external.html
deltaspike/site/trunk/content/staging/documentation/index.html
deltaspike/site/trunk/content/staging/documentation/jpa.html
deltaspike/site/trunk/content/staging/documentation/jsf.html
deltaspike/site/trunk/content/staging/documentation/overview.html
deltaspike/site/trunk/content/staging/documentation/partial-bean.html
deltaspike/site/trunk/content/staging/documentation/projectstage.html
deltaspike/site/trunk/content/staging/documentation/releasenotes/
deltaspike/site/trunk/content/staging/documentation/scheduler.html
deltaspike/site/trunk/content/staging/documentation/security.html
deltaspike/site/trunk/content/staging/documentation/servlet.html
deltaspike/site/trunk/content/staging/documentation/snapshots.html
deltaspike/site/trunk/content/staging/documentation/source.html
deltaspike/site/trunk/content/staging/documentation/spi.html
deltaspike/site/trunk/content/staging/documentation/test-control.html
Added: deltaspike/site/trunk/content/staging/documentation/addons.html
URL:
http://svn.apache.org/viewvc/deltaspike/site/trunk/content/staging/documentation/addons.html?rev=1641921&view=auto
==============================================================================
--- deltaspike/site/trunk/content/staging/documentation/addons.html (added)
+++ deltaspike/site/trunk/content/staging/documentation/addons.html Wed Nov 26
20:21:53 2014
@@ -0,0 +1,278 @@
+<!DOCTYPE html>
+<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>Add-ons</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
"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. -->
+
+<!-- Styles -->
+
+<link href="https://deltaspike.apache.org/resources/css/bootstrap.css"
rel="stylesheet">
+<link
href="https://deltaspike.apache.org/resources/css/bootstrap-responsive.css"
rel="stylesheet">
+
+<style type="text/css">
+/* Stylesheet for CodeRay to match GitHub theme | MIT License |
http://foundation.zurb.com */
+/*pre.CodeRay {background-color:#f7f7f8;}*/
+.CodeRay .line-numbers{border-right:1px solid #d8d8d8;padding:0 0.5em 0 .25em}
+.CodeRay
span.line-numbers{display:inline-block;margin-right:.5em;color:rgba(0,0,0,.3)}
+.CodeRay .line-numbers strong{font-weight: normal}
+table.CodeRay{border-collapse:separate;border-spacing:0;margin-bottom:0;border:0;background:none}
+table.CodeRay td{vertical-align: top}
+table.CodeRay td.line-numbers{text-align:right}
+table.CodeRay td.line-numbers>pre{padding:0;color:rgba(0,0,0,.3)}
+table.CodeRay td.code{padding:0 0 0 .5em}
+table.CodeRay td.code>pre{padding:0}
+.CodeRay .debug{color:#fff !important;background:#000080 !important}
+.CodeRay .annotation{color:#007}
+.CodeRay .attribute-name{color:#000080}
+.CodeRay .attribute-value{color:#700}
+.CodeRay .binary{color:#509}
+.CodeRay .comment{color:#998;font-style:italic}
+.CodeRay .char{color:#04d}
+.CodeRay .char .content{color:#04d}
+.CodeRay .char .delimiter{color:#039}
+.CodeRay .class{color:#458;font-weight:bold}
+.CodeRay .complex{color:#a08}
+.CodeRay .constant,.CodeRay .predefined-constant{color:#008080}
+.CodeRay .color{color:#099}
+.CodeRay .class-variable{color:#369}
+.CodeRay .decorator{color:#b0b}
+.CodeRay .definition{color:#099}
+.CodeRay .delimiter{color:#000}
+.CodeRay .doc{color:#970}
+.CodeRay .doctype{color:#34b}
+.CodeRay .doc-string{color:#d42}
+.CodeRay .escape{color:#666}
+.CodeRay .entity{color:#800}
+.CodeRay .error{color:#808}
+.CodeRay .exception{color:inherit}
+.CodeRay .filename{color:#099}
+.CodeRay .function{color:#900;font-weight:bold}
+.CodeRay .global-variable{color:#008080}
+.CodeRay .hex{color:#058}
+.CodeRay .integer,.CodeRay .float{color:#099}
+.CodeRay .include{color:#555}
+.CodeRay .inline{color:#00}
+.CodeRay .inline .inline{background:#ccc}
+.CodeRay .inline .inline .inline{background:#bbb}
+.CodeRay .inline .inline-delimiter{color:#d14}
+.CodeRay .inline-delimiter{color:#d14}
+.CodeRay .important{color:#555;font-weight:bold}
+.CodeRay .interpreted{color:#b2b}
+.CodeRay .instance-variable{color:#008080}
+.CodeRay .label{color:#970}
+.CodeRay .local-variable{color:#963}
+.CodeRay .octal{color:#40e}
+.CodeRay .predefined{color:#369}
+.CodeRay .preprocessor{color:#579}
+.CodeRay .pseudo-class{color:#555}
+.CodeRay .directive{font-weight:bold}
+.CodeRay .type{font-weight:bold}
+.CodeRay .predefined-type{color:inherit}
+.CodeRay .reserved,.CodeRay .keyword {color:#000;font-weight:bold}
+.CodeRay .key{color:#808}
+.CodeRay .key .delimiter{color:#606}
+.CodeRay .key .char{color:#80f}
+.CodeRay .value{color:#088}
+.CodeRay .regexp .delimiter{color:#808}
+.CodeRay .regexp .content{color:#808}
+.CodeRay .regexp .modifier{color:#808}
+.CodeRay .regexp .char{color:#d14}
+.CodeRay .regexp .function{color:#404;font-weight:bold}
+.CodeRay .string{color:#d20}
+.CodeRay .string .string .string{background:#ffd0d0}
+.CodeRay .string .content{color:#d14}
+.CodeRay .string .char{color:#d14}
+.CodeRay .string .delimiter{color:#d14}
+.CodeRay .shell{color:#d14}
+.CodeRay .shell .delimiter{color:#d14}
+.CodeRay .symbol{color:#990073}
+.CodeRay .symbol .content{color:#a60}
+.CodeRay .symbol .delimiter{color:#630}
+.CodeRay .tag{color:#008080}
+.CodeRay .tag-special{color:#d70}
+.CodeRay .variable{color:#036}
+.CodeRay .insert{background:#afa}
+.CodeRay .delete{background:#faa}
+.CodeRay .change{color:#aaf;background:#007}
+.CodeRay .head{color:#f8f;background:#505}
+.CodeRay .insert .insert{color:#080}
+.CodeRay .delete .delete{color:#800}
+.CodeRay .change .change{color:#66f}
+.CodeRay .head .head{color:#f4f}
+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 logocolor"
+
href="http://deltaspike.apache.org/index.html">Apache
+ DeltaSpike</a>
+ <div class="nav-collapse">
+ <ul class="nav">
+ <li class="active"><a
+
href="http://deltaspike.apache.org/index.html">Home</a></li>
+ <li><a
href="http://deltaspike.apache.org/documentation">Documentation</a></li>
+ <li><a
href="http://deltaspike.apache.org/javadoc.html">Javadoc</a></li>
+ <li><a
href="http://deltaspike.apache.org/documentation/source.html">Source</a></li>
+ <li><a
href="http://deltaspike.apache.org/download.html">Download</a></li>
+ <li><a
href="http://deltaspike.apache.org/community.html">Community</a></li>
+ <!-- <li><a
href="./support.html">Support</a></li> -->
+ <li><a
href="http://deltaspike.apache.org/news.html">News</a></li>
+ <li><a
+
href="http://deltaspike.apache.org/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="deltaspike.apache.org"
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>Add-ons</h1>
+ </div>
+
+ <div id="toc" class="toc">
+ <ul class="sectlevel1">
+<li><a href="#_monitoring">Monitoring</a></li>
+<li><a href="#_spring_bridge">Spring Bridge</a></li>
+<li><a href="#_disruptor">Disruptor</a></li>
+</ul>
+ <hr>
+
+ <div id="preamble">
+<div class="sectionbody">
+<div class="paragraph">
+<p>Add-ons extend the functionality of DeltaSpike and several have been
developed external to the DeltaSpike project. Brief information is given here
about each of the add-ons, with details of where they can be obtained from.</p>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_monitoring">Monitoring</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p><strong>Replace this text!</strong> Write 2-3 sentences in plain language
making sure you answer every question:</p>
+</div>
+<div class="ulist">
+<ul>
+<li>
+<p>What is the purpose of the add-on (e.g., A two-way cdi-spring bridge that
allows spring-beans to be injected into cdi-beans and vice versa provided the
concepts, for example qualifiers, are compatible.)?</p>
+</li>
+<li>
+<p>When would the user use this add-on?</p>
+</li>
+<li>
+<p>Where can the user get the add-on from (<a
href="https://github.com/os890/ds-monitoring-addon"
class="bare">https://github.com/os890/ds-monitoring-addon</a> )?</p>
+</li>
+<li>
+<p>Any special instructions for using the add-on correctly?</p>
+</li>
+</ul>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_spring_bridge">Spring Bridge</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p><code>ds-spring-bridge-addon</code> is a two-way cdi-spring bridge that
allows spring-beans to be injected into cdi-beans and vice versa provided the
concepts, for example qualifiers, are compatible. You can obtain this add-on
from <a href="https://github.com/os890/ds-spring-bridge-addon"
class="bare">https://github.com/os890/ds-spring-bridge-addon</a>.</p>
+</div>
+<div class="paragraph">
+<p><strong>Replace this text!</strong> Write 2-3 sentences in plain language
making sure you answer every question:</p>
+</div>
+<div class="ulist">
+<ul>
+<li>
+<p>What is the purpose of the add-on (e.g., A two-way cdi-spring bridge that
allows spring-beans to be injected into cdi-beans and vice versa provided the
concepts, for example qualifiers, are compatible.)?</p>
+</li>
+<li>
+<p>When would the user use this add-on?</p>
+</li>
+<li>
+<p>Where can the user get the add-on from (<a
href="https://github.com/os890/ds-spring-bridge-addon"
class="bare">https://github.com/os890/ds-spring-bridge-addon</a> )?</p>
+</li>
+<li>
+<p>Any special instructions for using the add-on correctly?</p>
+</li>
+</ul>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_disruptor">Disruptor</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p>This add-on creates a disruptor process for every observer method. It
currently works with Apache TomEE and JBoss AS 7.</p>
+</div>
+<div class="paragraph">
+<p><strong>Replace this text!</strong> Write 2-3 sentences in plain language
making sure you answer every question:</p>
+</div>
+<div class="ulist">
+<ul>
+<li>
+<p>What is the purpose of the add-on (e.g., A two-way cdi-spring bridge that
allows spring-beans to be injected into cdi-beans and vice versa provided the
concepts, for example qualifiers, are compatible.)?</p>
+</li>
+<li>
+<p>When would the user use this add-on?</p>
+</li>
+<li>
+<p>Where can the user get the add-on from (<a
href="https://github.com/os890/ds-disruptor-addon"
class="bare">https://github.com/os890/ds-disruptor-addon</a> )?</p>
+</li>
+<li>
+<p>Any special instructions for using the add-on correctly?</p>
+</li>
+</ul>
+</div>
+</div>
+</div>
+ </div>
+
+ <hr>
+
+ <footer>
+ <p>Copyright © 2011-2014 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 -->
+
+</body>
+</html>
\ No newline at end of file
Added: deltaspike/site/trunk/content/staging/documentation/articles.html
URL:
http://svn.apache.org/viewvc/deltaspike/site/trunk/content/staging/documentation/articles.html?rev=1641921&view=auto
==============================================================================
--- deltaspike/site/trunk/content/staging/documentation/articles.html (added)
+++ deltaspike/site/trunk/content/staging/documentation/articles.html Wed Nov
26 20:21:53 2014
@@ -0,0 +1,259 @@
+<!DOCTYPE html>
+<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>Articles and Blogs</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
"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. -->
+
+<!-- Styles -->
+
+<link href="https://deltaspike.apache.org/resources/css/bootstrap.css"
rel="stylesheet">
+<link
href="https://deltaspike.apache.org/resources/css/bootstrap-responsive.css"
rel="stylesheet">
+
+<style type="text/css">
+/* Stylesheet for CodeRay to match GitHub theme | MIT License |
http://foundation.zurb.com */
+/*pre.CodeRay {background-color:#f7f7f8;}*/
+.CodeRay .line-numbers{border-right:1px solid #d8d8d8;padding:0 0.5em 0 .25em}
+.CodeRay
span.line-numbers{display:inline-block;margin-right:.5em;color:rgba(0,0,0,.3)}
+.CodeRay .line-numbers strong{font-weight: normal}
+table.CodeRay{border-collapse:separate;border-spacing:0;margin-bottom:0;border:0;background:none}
+table.CodeRay td{vertical-align: top}
+table.CodeRay td.line-numbers{text-align:right}
+table.CodeRay td.line-numbers>pre{padding:0;color:rgba(0,0,0,.3)}
+table.CodeRay td.code{padding:0 0 0 .5em}
+table.CodeRay td.code>pre{padding:0}
+.CodeRay .debug{color:#fff !important;background:#000080 !important}
+.CodeRay .annotation{color:#007}
+.CodeRay .attribute-name{color:#000080}
+.CodeRay .attribute-value{color:#700}
+.CodeRay .binary{color:#509}
+.CodeRay .comment{color:#998;font-style:italic}
+.CodeRay .char{color:#04d}
+.CodeRay .char .content{color:#04d}
+.CodeRay .char .delimiter{color:#039}
+.CodeRay .class{color:#458;font-weight:bold}
+.CodeRay .complex{color:#a08}
+.CodeRay .constant,.CodeRay .predefined-constant{color:#008080}
+.CodeRay .color{color:#099}
+.CodeRay .class-variable{color:#369}
+.CodeRay .decorator{color:#b0b}
+.CodeRay .definition{color:#099}
+.CodeRay .delimiter{color:#000}
+.CodeRay .doc{color:#970}
+.CodeRay .doctype{color:#34b}
+.CodeRay .doc-string{color:#d42}
+.CodeRay .escape{color:#666}
+.CodeRay .entity{color:#800}
+.CodeRay .error{color:#808}
+.CodeRay .exception{color:inherit}
+.CodeRay .filename{color:#099}
+.CodeRay .function{color:#900;font-weight:bold}
+.CodeRay .global-variable{color:#008080}
+.CodeRay .hex{color:#058}
+.CodeRay .integer,.CodeRay .float{color:#099}
+.CodeRay .include{color:#555}
+.CodeRay .inline{color:#00}
+.CodeRay .inline .inline{background:#ccc}
+.CodeRay .inline .inline .inline{background:#bbb}
+.CodeRay .inline .inline-delimiter{color:#d14}
+.CodeRay .inline-delimiter{color:#d14}
+.CodeRay .important{color:#555;font-weight:bold}
+.CodeRay .interpreted{color:#b2b}
+.CodeRay .instance-variable{color:#008080}
+.CodeRay .label{color:#970}
+.CodeRay .local-variable{color:#963}
+.CodeRay .octal{color:#40e}
+.CodeRay .predefined{color:#369}
+.CodeRay .preprocessor{color:#579}
+.CodeRay .pseudo-class{color:#555}
+.CodeRay .directive{font-weight:bold}
+.CodeRay .type{font-weight:bold}
+.CodeRay .predefined-type{color:inherit}
+.CodeRay .reserved,.CodeRay .keyword {color:#000;font-weight:bold}
+.CodeRay .key{color:#808}
+.CodeRay .key .delimiter{color:#606}
+.CodeRay .key .char{color:#80f}
+.CodeRay .value{color:#088}
+.CodeRay .regexp .delimiter{color:#808}
+.CodeRay .regexp .content{color:#808}
+.CodeRay .regexp .modifier{color:#808}
+.CodeRay .regexp .char{color:#d14}
+.CodeRay .regexp .function{color:#404;font-weight:bold}
+.CodeRay .string{color:#d20}
+.CodeRay .string .string .string{background:#ffd0d0}
+.CodeRay .string .content{color:#d14}
+.CodeRay .string .char{color:#d14}
+.CodeRay .string .delimiter{color:#d14}
+.CodeRay .shell{color:#d14}
+.CodeRay .shell .delimiter{color:#d14}
+.CodeRay .symbol{color:#990073}
+.CodeRay .symbol .content{color:#a60}
+.CodeRay .symbol .delimiter{color:#630}
+.CodeRay .tag{color:#008080}
+.CodeRay .tag-special{color:#d70}
+.CodeRay .variable{color:#036}
+.CodeRay .insert{background:#afa}
+.CodeRay .delete{background:#faa}
+.CodeRay .change{color:#aaf;background:#007}
+.CodeRay .head{color:#f8f;background:#505}
+.CodeRay .insert .insert{color:#080}
+.CodeRay .delete .delete{color:#800}
+.CodeRay .change .change{color:#66f}
+.CodeRay .head .head{color:#f4f}
+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 logocolor"
+
href="http://deltaspike.apache.org/index.html">Apache
+ DeltaSpike</a>
+ <div class="nav-collapse">
+ <ul class="nav">
+ <li class="active"><a
+
href="http://deltaspike.apache.org/index.html">Home</a></li>
+ <li><a
href="http://deltaspike.apache.org/documentation">Documentation</a></li>
+ <li><a
href="http://deltaspike.apache.org/javadoc.html">Javadoc</a></li>
+ <li><a
href="http://deltaspike.apache.org/documentation/source.html">Source</a></li>
+ <li><a
href="http://deltaspike.apache.org/download.html">Download</a></li>
+ <li><a
href="http://deltaspike.apache.org/community.html">Community</a></li>
+ <!-- <li><a
href="./support.html">Support</a></li> -->
+ <li><a
href="http://deltaspike.apache.org/news.html">News</a></li>
+ <li><a
+
href="http://deltaspike.apache.org/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="deltaspike.apache.org"
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>Articles and Blogs</h1>
+ </div>
+
+ <div id="toc" class="toc">
+ <ul class="sectlevel1">
+<li><a href="#_ongoing">Ongoing</a></li>
+<li><a href="#_one_offs">One-offs</a></li>
+</ul>
+ <hr>
+
+ <div id="preamble">
+<div class="sectionbody">
+<div class="paragraph">
+<p>You can find lots of content related to DeltaSpike with a quick internet
search. But here is a list of some useful articles and blogs to get you
started.</p>
+</div>
+<div class="paragraph">
+<p>If you know of useful DeltaSpike articles or blogs that are not listed, <a
href="https://deltaspike.apache.org/community.html">let us know</a>.</p>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_ongoing">Ongoing</h2>
+<div class="sectionbody">
+<div class="ulist">
+<ul>
+<li>
+<p><a href="https://twitter.com/DeltaSpikeTeam">@DeltaSpikeTeam on
Twitter</a></p>
+</li>
+<li>
+<p><a href="https://twitter.com/hashtag/deltaspike">#deltaspike on
Twitter</a></p>
+</li>
+<li>
+<p><a href="http://os890.blogspot.com.au/search/label/deltaspike">os890
DeltaSpike posts</a></p>
+</li>
+<li>
+<p><a href="http://rafabene.com/?s=deltaspike&submit=Search">Rafael
Benevides DeltaSpike posts</a></p>
+</li>
+<li>
+<p><a href="http://rmannibucau.wordpress.com/?s=deltaspike">RManiiBucau
DeltaSpike posts</a></p>
+</li>
+<li>
+<p><a href="https://struberg.wordpress.com/?s=deltaspike">Struberg DeltaSpike
posts</a></p>
+</li>
+</ul>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_one_offs">One-offs</h2>
+<div class="sectionbody">
+<div class="ulist">
+<ul>
+<li>
+<p><a
href="https://blogs.oracle.com/theaquarium/entry/introducing_deltaspike_1_0">The
Aquarium: Introducing DeltaSpike 1.0</a></p>
+</li>
+<li>
+<p><a
href="http://blog.arungupta.me/2014/06/deltaspike-1-0-extend-javaee-techtip32/">DeltaSpike
1.0 â Extend #JavaEE beyond #JavaEE</a></p>
+</li>
+<li>
+<p><a
href="http://www.tearsofaunicorn.com/articles/2014/06/10/configuring-deltaspike-through-environment-variables.html">Configuring
Apache Deltaspike through environment variables</a></p>
+</li>
+<li>
+<p><a
href="http://blog.ctp.com/2013/11/27/bye-bye-cdi-query-hello-deltaspike-data/">Bye
Bye CDI Query, Hello DeltaSpike Data</a></p>
+</li>
+<li>
+<p><a
href="http://rmannibucau.wordpress.com/2013/11/20/deltaspike-data-repositories-with-dtos/">DeltaSpike
Data: repositories with DTOs!</a></p>
+</li>
+<li>
+<p><a
href="http://jaxenter.com/introducing-apache-deltaspike-42925.html">Closing the
Gaps: Introducing Apache Deltaspike</a></p>
+</li>
+<li>
+<p><a
href="http://jsfcorner.blogspot.com.au/2013/01/deltaspike-jsf-message-system.html">DeltaSpike
JSF message system</a></p>
+</li>
+</ul>
+</div>
+</div>
+</div>
+ </div>
+
+ <hr>
+
+ <footer>
+ <p>Copyright © 2011-2014 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 -->
+
+</body>
+</html>
\ No newline at end of file
Added: deltaspike/site/trunk/content/staging/documentation/bean-validation.html
URL:
http://svn.apache.org/viewvc/deltaspike/site/trunk/content/staging/documentation/bean-validation.html?rev=1641921&view=auto
==============================================================================
--- deltaspike/site/trunk/content/staging/documentation/bean-validation.html
(added)
+++ deltaspike/site/trunk/content/staging/documentation/bean-validation.html
Wed Nov 26 20:21:53 2014
@@ -0,0 +1,244 @@
+<!DOCTYPE html>
+<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>Bean Validation Module</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
"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. -->
+
+<!-- Styles -->
+
+<link href="https://deltaspike.apache.org/resources/css/bootstrap.css"
rel="stylesheet">
+<link
href="https://deltaspike.apache.org/resources/css/bootstrap-responsive.css"
rel="stylesheet">
+
+<style type="text/css">
+/* Stylesheet for CodeRay to match GitHub theme | MIT License |
http://foundation.zurb.com */
+/*pre.CodeRay {background-color:#f7f7f8;}*/
+.CodeRay .line-numbers{border-right:1px solid #d8d8d8;padding:0 0.5em 0 .25em}
+.CodeRay
span.line-numbers{display:inline-block;margin-right:.5em;color:rgba(0,0,0,.3)}
+.CodeRay .line-numbers strong{font-weight: normal}
+table.CodeRay{border-collapse:separate;border-spacing:0;margin-bottom:0;border:0;background:none}
+table.CodeRay td{vertical-align: top}
+table.CodeRay td.line-numbers{text-align:right}
+table.CodeRay td.line-numbers>pre{padding:0;color:rgba(0,0,0,.3)}
+table.CodeRay td.code{padding:0 0 0 .5em}
+table.CodeRay td.code>pre{padding:0}
+.CodeRay .debug{color:#fff !important;background:#000080 !important}
+.CodeRay .annotation{color:#007}
+.CodeRay .attribute-name{color:#000080}
+.CodeRay .attribute-value{color:#700}
+.CodeRay .binary{color:#509}
+.CodeRay .comment{color:#998;font-style:italic}
+.CodeRay .char{color:#04d}
+.CodeRay .char .content{color:#04d}
+.CodeRay .char .delimiter{color:#039}
+.CodeRay .class{color:#458;font-weight:bold}
+.CodeRay .complex{color:#a08}
+.CodeRay .constant,.CodeRay .predefined-constant{color:#008080}
+.CodeRay .color{color:#099}
+.CodeRay .class-variable{color:#369}
+.CodeRay .decorator{color:#b0b}
+.CodeRay .definition{color:#099}
+.CodeRay .delimiter{color:#000}
+.CodeRay .doc{color:#970}
+.CodeRay .doctype{color:#34b}
+.CodeRay .doc-string{color:#d42}
+.CodeRay .escape{color:#666}
+.CodeRay .entity{color:#800}
+.CodeRay .error{color:#808}
+.CodeRay .exception{color:inherit}
+.CodeRay .filename{color:#099}
+.CodeRay .function{color:#900;font-weight:bold}
+.CodeRay .global-variable{color:#008080}
+.CodeRay .hex{color:#058}
+.CodeRay .integer,.CodeRay .float{color:#099}
+.CodeRay .include{color:#555}
+.CodeRay .inline{color:#00}
+.CodeRay .inline .inline{background:#ccc}
+.CodeRay .inline .inline .inline{background:#bbb}
+.CodeRay .inline .inline-delimiter{color:#d14}
+.CodeRay .inline-delimiter{color:#d14}
+.CodeRay .important{color:#555;font-weight:bold}
+.CodeRay .interpreted{color:#b2b}
+.CodeRay .instance-variable{color:#008080}
+.CodeRay .label{color:#970}
+.CodeRay .local-variable{color:#963}
+.CodeRay .octal{color:#40e}
+.CodeRay .predefined{color:#369}
+.CodeRay .preprocessor{color:#579}
+.CodeRay .pseudo-class{color:#555}
+.CodeRay .directive{font-weight:bold}
+.CodeRay .type{font-weight:bold}
+.CodeRay .predefined-type{color:inherit}
+.CodeRay .reserved,.CodeRay .keyword {color:#000;font-weight:bold}
+.CodeRay .key{color:#808}
+.CodeRay .key .delimiter{color:#606}
+.CodeRay .key .char{color:#80f}
+.CodeRay .value{color:#088}
+.CodeRay .regexp .delimiter{color:#808}
+.CodeRay .regexp .content{color:#808}
+.CodeRay .regexp .modifier{color:#808}
+.CodeRay .regexp .char{color:#d14}
+.CodeRay .regexp .function{color:#404;font-weight:bold}
+.CodeRay .string{color:#d20}
+.CodeRay .string .string .string{background:#ffd0d0}
+.CodeRay .string .content{color:#d14}
+.CodeRay .string .char{color:#d14}
+.CodeRay .string .delimiter{color:#d14}
+.CodeRay .shell{color:#d14}
+.CodeRay .shell .delimiter{color:#d14}
+.CodeRay .symbol{color:#990073}
+.CodeRay .symbol .content{color:#a60}
+.CodeRay .symbol .delimiter{color:#630}
+.CodeRay .tag{color:#008080}
+.CodeRay .tag-special{color:#d70}
+.CodeRay .variable{color:#036}
+.CodeRay .insert{background:#afa}
+.CodeRay .delete{background:#faa}
+.CodeRay .change{color:#aaf;background:#007}
+.CodeRay .head{color:#f8f;background:#505}
+.CodeRay .insert .insert{color:#080}
+.CodeRay .delete .delete{color:#800}
+.CodeRay .change .change{color:#66f}
+.CodeRay .head .head{color:#f4f}
+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 logocolor"
+
href="http://deltaspike.apache.org/index.html">Apache
+ DeltaSpike</a>
+ <div class="nav-collapse">
+ <ul class="nav">
+ <li class="active"><a
+
href="http://deltaspike.apache.org/index.html">Home</a></li>
+ <li><a
href="http://deltaspike.apache.org/documentation">Documentation</a></li>
+ <li><a
href="http://deltaspike.apache.org/javadoc.html">Javadoc</a></li>
+ <li><a
href="http://deltaspike.apache.org/documentation/source.html">Source</a></li>
+ <li><a
href="http://deltaspike.apache.org/download.html">Download</a></li>
+ <li><a
href="http://deltaspike.apache.org/community.html">Community</a></li>
+ <!-- <li><a
href="./support.html">Support</a></li> -->
+ <li><a
href="http://deltaspike.apache.org/news.html">News</a></li>
+ <li><a
+
href="http://deltaspike.apache.org/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="deltaspike.apache.org"
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>Bean Validation Module</h1>
+ </div>
+
+ <div id="toc" class="toc">
+ <ul class="sectlevel1">
+<li><a href="#_introduction">Introduction</a>
+<ul class="sectlevel2">
+<li><a href="#_scoping">Scoping</a></li>
+<li><a href="#_code_requirements">Code Requirements</a></li>
+</ul>
+</li>
+</ul>
+ <hr>
+
+ <div class="sect1">
+<h2 id="_introduction">Introduction</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p>The main feature of the Bean Validation module is to provide CDI
+integration in to <code>ConstraintValidator</code> `s. This allows you to
inject CDI
+objects, EJBs etc in to your validators.</p>
+</div>
+<div class="sect2">
+<h3 id="_scoping">Scoping</h3>
+<div class="paragraph">
+<p><code>ConstraintValidator</code> `s will inherit whatever scope as defined
in the bean class.</p>
+</div>
+<div class="paragraph">
+<p>Inherently, a <code>ConstraintValidator</code> may be invoked by multiple
threads so please keep that in mind when using them.
+You should consider using at least <code>RequestScoped</code> validators.</p>
+</div>
+</div>
+<div class="sect2">
+<h3 id="_code_requirements">Code Requirements</h3>
+<div class="paragraph">
+<p>There are no compile dependencies to use the Bean Validation module. You
+simply need to override the factory, either in Java:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code
data-lang="java">Validation.byDefaultProvider().configure().constraintValidatorFactory(<span
class="keyword">new</span>
CDIAwareConstraintValidatorFactory()).buildValidatorFactory()</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>Or in XML:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="xml"><span
class="tag"><validation-config</span> <span
class="attribute-name">xmlns</span>=<span class="string"><span
class="delimiter">"</span><span
class="content">http://jboss.org/xml/ns/javax/validation/configuration</span><span
class="delimiter">"</span></span>
+ <span class="attribute-name">xmlns:xsi</span>=<span class="string"><span
class="delimiter">"</span><span
class="content">http://www.w3.org/2001/XMLSchema-instance</span><span
class="delimiter">"</span></span>
+ <span class="attribute-name">xsi:schemaLocation</span>=<span
class="string"><span class="delimiter">"</span><span
class="content">http://jboss.org/xml/ns/javax/validation/configuration</span><span
class="delimiter">"</span></span><span class="tag">></span>
+ <span
class="tag"><constraint-validator-factory></span>org.apache.deltaspike.beanvalidation.impl.CDIAwareConstraintValidatorFactory<span
class="tag"></constraint-validator-factory></span>
+<span class="tag"></validation-config></span></code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>And then you can simply build your `ConstraintValidator`s based on CDI
+programming rules.</p>
+</div>
+</div>
+</div>
+</div>
+ </div>
+
+ <hr>
+
+ <footer>
+ <p>Copyright © 2011-2014 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 -->
+
+</body>
+</html>
\ No newline at end of file
Added: deltaspike/site/trunk/content/staging/documentation/build.html
URL:
http://svn.apache.org/viewvc/deltaspike/site/trunk/content/staging/documentation/build.html?rev=1641921&view=auto
==============================================================================
--- deltaspike/site/trunk/content/staging/documentation/build.html (added)
+++ deltaspike/site/trunk/content/staging/documentation/build.html Wed Nov 26
20:21:53 2014
@@ -0,0 +1,386 @@
+<!DOCTYPE html>
+<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>Build and Test DeltaSpike from Source</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
"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. -->
+
+<!-- Styles -->
+
+<link href="https://deltaspike.apache.org/resources/css/bootstrap.css"
rel="stylesheet">
+<link
href="https://deltaspike.apache.org/resources/css/bootstrap-responsive.css"
rel="stylesheet">
+
+<style type="text/css">
+/* Stylesheet for CodeRay to match GitHub theme | MIT License |
http://foundation.zurb.com */
+/*pre.CodeRay {background-color:#f7f7f8;}*/
+.CodeRay .line-numbers{border-right:1px solid #d8d8d8;padding:0 0.5em 0 .25em}
+.CodeRay
span.line-numbers{display:inline-block;margin-right:.5em;color:rgba(0,0,0,.3)}
+.CodeRay .line-numbers strong{font-weight: normal}
+table.CodeRay{border-collapse:separate;border-spacing:0;margin-bottom:0;border:0;background:none}
+table.CodeRay td{vertical-align: top}
+table.CodeRay td.line-numbers{text-align:right}
+table.CodeRay td.line-numbers>pre{padding:0;color:rgba(0,0,0,.3)}
+table.CodeRay td.code{padding:0 0 0 .5em}
+table.CodeRay td.code>pre{padding:0}
+.CodeRay .debug{color:#fff !important;background:#000080 !important}
+.CodeRay .annotation{color:#007}
+.CodeRay .attribute-name{color:#000080}
+.CodeRay .attribute-value{color:#700}
+.CodeRay .binary{color:#509}
+.CodeRay .comment{color:#998;font-style:italic}
+.CodeRay .char{color:#04d}
+.CodeRay .char .content{color:#04d}
+.CodeRay .char .delimiter{color:#039}
+.CodeRay .class{color:#458;font-weight:bold}
+.CodeRay .complex{color:#a08}
+.CodeRay .constant,.CodeRay .predefined-constant{color:#008080}
+.CodeRay .color{color:#099}
+.CodeRay .class-variable{color:#369}
+.CodeRay .decorator{color:#b0b}
+.CodeRay .definition{color:#099}
+.CodeRay .delimiter{color:#000}
+.CodeRay .doc{color:#970}
+.CodeRay .doctype{color:#34b}
+.CodeRay .doc-string{color:#d42}
+.CodeRay .escape{color:#666}
+.CodeRay .entity{color:#800}
+.CodeRay .error{color:#808}
+.CodeRay .exception{color:inherit}
+.CodeRay .filename{color:#099}
+.CodeRay .function{color:#900;font-weight:bold}
+.CodeRay .global-variable{color:#008080}
+.CodeRay .hex{color:#058}
+.CodeRay .integer,.CodeRay .float{color:#099}
+.CodeRay .include{color:#555}
+.CodeRay .inline{color:#00}
+.CodeRay .inline .inline{background:#ccc}
+.CodeRay .inline .inline .inline{background:#bbb}
+.CodeRay .inline .inline-delimiter{color:#d14}
+.CodeRay .inline-delimiter{color:#d14}
+.CodeRay .important{color:#555;font-weight:bold}
+.CodeRay .interpreted{color:#b2b}
+.CodeRay .instance-variable{color:#008080}
+.CodeRay .label{color:#970}
+.CodeRay .local-variable{color:#963}
+.CodeRay .octal{color:#40e}
+.CodeRay .predefined{color:#369}
+.CodeRay .preprocessor{color:#579}
+.CodeRay .pseudo-class{color:#555}
+.CodeRay .directive{font-weight:bold}
+.CodeRay .type{font-weight:bold}
+.CodeRay .predefined-type{color:inherit}
+.CodeRay .reserved,.CodeRay .keyword {color:#000;font-weight:bold}
+.CodeRay .key{color:#808}
+.CodeRay .key .delimiter{color:#606}
+.CodeRay .key .char{color:#80f}
+.CodeRay .value{color:#088}
+.CodeRay .regexp .delimiter{color:#808}
+.CodeRay .regexp .content{color:#808}
+.CodeRay .regexp .modifier{color:#808}
+.CodeRay .regexp .char{color:#d14}
+.CodeRay .regexp .function{color:#404;font-weight:bold}
+.CodeRay .string{color:#d20}
+.CodeRay .string .string .string{background:#ffd0d0}
+.CodeRay .string .content{color:#d14}
+.CodeRay .string .char{color:#d14}
+.CodeRay .string .delimiter{color:#d14}
+.CodeRay .shell{color:#d14}
+.CodeRay .shell .delimiter{color:#d14}
+.CodeRay .symbol{color:#990073}
+.CodeRay .symbol .content{color:#a60}
+.CodeRay .symbol .delimiter{color:#630}
+.CodeRay .tag{color:#008080}
+.CodeRay .tag-special{color:#d70}
+.CodeRay .variable{color:#036}
+.CodeRay .insert{background:#afa}
+.CodeRay .delete{background:#faa}
+.CodeRay .change{color:#aaf;background:#007}
+.CodeRay .head{color:#f8f;background:#505}
+.CodeRay .insert .insert{color:#080}
+.CodeRay .delete .delete{color:#800}
+.CodeRay .change .change{color:#66f}
+.CodeRay .head .head{color:#f4f}
+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 logocolor"
+
href="http://deltaspike.apache.org/index.html">Apache
+ DeltaSpike</a>
+ <div class="nav-collapse">
+ <ul class="nav">
+ <li class="active"><a
+
href="http://deltaspike.apache.org/index.html">Home</a></li>
+ <li><a
href="http://deltaspike.apache.org/documentation">Documentation</a></li>
+ <li><a
href="http://deltaspike.apache.org/javadoc.html">Javadoc</a></li>
+ <li><a
href="http://deltaspike.apache.org/documentation/source.html">Source</a></li>
+ <li><a
href="http://deltaspike.apache.org/download.html">Download</a></li>
+ <li><a
href="http://deltaspike.apache.org/community.html">Community</a></li>
+ <!-- <li><a
href="./support.html">Support</a></li> -->
+ <li><a
href="http://deltaspike.apache.org/news.html">News</a></li>
+ <li><a
+
href="http://deltaspike.apache.org/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="deltaspike.apache.org"
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>Build and Test DeltaSpike from Source</h1>
+ </div>
+
+ <div id="toc" class="toc">
+ <ul class="sectlevel1">
+<li><a href="#_build_without_cdi_implementation_tests">Build without CDI
Implementation Tests</a></li>
+<li><a href="#_build_and_test_with_a_cdi_implementation">Build and Test with a
CDI Implementation</a></li>
+<li><a href="#_build_and_test_with_cdi_containers">Build and Test with CDI
Containers</a></li>
+<li><a href="#_next">Next</a></li>
+</ul>
+ <hr>
+
+ <div id="preamble">
+<div class="sectionbody">
+<div class="paragraph">
+<p>The DeltaSpike source (modules and examples) is provided for inspection,
contribution and testing purposes. The source must be built with Maven, which
has been used to automate the compilation, testing and packaging processes.
Arquillian tests are automatically conducted when DeltaSpike is built and CDI
implementations or containers with which to carry out the tests can be
specified.</p>
+</div>
+<div class="paragraph">
+<p>In all cases, to obtain the DeltaSpike source, <a
href="https://deltaspike.apache.org/download.html">download
<code>deltaspike-project-<version>-source-release.zip</code></a> and
extract the contents.</p>
+</div>
+<div class="paragraph">
+<p><strong>Note:</strong> You can also obtain the DeltaSpike source from the
project Git repository. The repository is subject to change and it can be used
for contributing but should not be used in production environments. For more
information, see <a href="source.html">Get Source and compile it</a>.</p>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_build_without_cdi_implementation_tests">Build without CDI
Implementation Tests</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p>DeltaSpike can be built without executing tests against a CDI
implementation, with the following commands:</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="shell">$ cd
/path/to/deltaspike-project-<version>/
+$ mvn clean install</code></pre>
+</div>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_build_and_test_with_a_cdi_implementation">Build and Test with a CDI
Implementation</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p>Tests can be executed with both the JBoss Weld and Apache OpenWebBeans CDI
implementations.</p>
+</div>
+<table class="tableblock frame-all grid-all spread">
+<caption class="title">Table 1. Build Tests</caption>
+<colgroup>
+<col style="width: 33%;">
+<col style="width: 66%;">
+</colgroup>
+<thead>
+<tr>
+<th class="tableblock halign-left valign-top">Container</th>
+<th class="tableblock halign-left valign-top">Command to Execute Arquillian
Tests</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">JBoss
Weld</p></td>
+<td class="tableblock halign-left valign-top"><div><div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="shell">$ mvn clean install
-PWeld</code></pre>
+</div>
+</div></div></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Apache
OpenWebBeans</p></td>
+<td class="tableblock halign-left valign-top"><div><div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="shell">$ mvn clean install
-POWB</code></pre>
+</div>
+</div></div></td>
+</tr>
+</tbody>
+</table>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_build_and_test_with_cdi_containers">Build and Test with CDI
Containers</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p>Tests can be executed with JBoss Weld and Apache OpenWebBeans through Java
EE 6+ application servers and containers. Configurations are currently provided
as details in the table here.</p>
+</div>
+<table class="tableblock frame-all grid-all spread">
+<caption class="title">Table 2. Integration Tests</caption>
+<colgroup>
+<col style="width: 40%;">
+<col style="width: 60%;">
+</colgroup>
+<thead>
+<tr>
+<th class="tableblock halign-left valign-top">Container</th>
+<th class="tableblock halign-left valign-top">Command to Execute Arquillian
Tests</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Apache
TomEE</p></td>
+<td class="tableblock halign-left valign-top"><div><div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="shell">$ mvn clean install
-Ptomee-build-managed</code></pre>
+</div>
+</div></div></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">JBoss AS7
(without AS7 installation)</p></td>
+<td class="tableblock halign-left valign-top"><div><div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="shell">$ mvn clean install
-Pjbossas-build-managed-7</code></pre>
+</div>
+</div></div></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">JBoss AS7
(AS7 installation required)</p></td>
+<td class="tableblock halign-left valign-top"><div><div class="paragraph">
+<p>Set <code>JBoss_HOME</code></p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="shell">$ mvn clean install
-Pjbossas-managed-7</code></pre>
+</div>
+</div></div></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">JBoss
WildFly 8 (without WildFly 8 installation)</p></td>
+<td class="tableblock halign-left valign-top"><div><div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="shell">mvn clean install
-Pwildfly-build-managed</code></pre>
+</div>
+</div></div></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">JBoss
WildFly 8 (WildFly 8 installation required)</p></td>
+<td class="tableblock halign-left valign-top"><div><div class="paragraph">
+<p>Set <code>WILDFLY_HOME</code></p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="shell">$ mvn clean install
-Pwildfly-managed</code></pre>
+</div>
+</div></div></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Oracle
GlassFish 3 (without GlassFish 3 installation)</p></td>
+<td class="tableblock halign-left valign-top"><div><div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="shell">mvn clean install
-Pglassfish-build-managed-3</code></pre>
+</div>
+</div></div></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Oracle
GlassFish 3.1 (GlassFish 3.1 installation required)</p></td>
+<td class="tableblock halign-left valign-top"><div><div class="paragraph">
+<p>Install GlassFish (default setup without admin-password) and start
+GlassFish with <code>asadmin start-domain</code> and <code>asadmin
start-database</code>.</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="shell">$ mvn clean install
-Pglassfish-remote-3.1</code></pre>
+</div>
+</div></div></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Oracle
GlassFish 4 (without Oracle GlassFish 4 installation)</p></td>
+<td class="tableblock halign-left valign-top"><div><div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="shell">mvn clean install
-Pglassfish-build-managed-4</code></pre>
+</div>
+</div></div></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Oracle
WebLogic 12c</p></td>
+<td class="tableblock halign-left valign-top"><div><div class="paragraph">
+<p>Install WebLogic 12c. Start Configuration Wizard to create a new basic
+WebLogic Domain. Default options and domain name = base_domain,
+administrator user name = weblogic1, administrator password = weblogic1.
+Set <code>WLS_HOME</code> so that <code>%WLS_HOME%.jar</code> exists. Start
the domain.</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="shell">$ mvn clean install
-Pwls-remote-12c</code></pre>
+</div>
+</div></div></td>
+</tr>
+</tbody>
+</table>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_next">Next</h2>
+<div class="sectionbody">
+<div class="ulist">
+<ul>
+<li>
+<p>For analysis of the DeltaSpike source, see <a
href="https://analysis.apache.org/dashboard/index/org.apache.deltaspike:deltaspike-project"
class="bare">https://analysis.apache.org/dashboard/index/org.apache.deltaspike:deltaspike-project</a></p>
+</li>
+<li>
+<p>For information about DeltaSpike automated Jenkins builds, see <a
href="https://builds.apache.org/view/A-D/view/DeltaSpike/"
class="bare">https://builds.apache.org/view/A-D/view/DeltaSpike/</a></p>
+</li>
+</ul>
+</div>
+</div>
+</div>
+ </div>
+
+ <hr>
+
+ <footer>
+ <p>Copyright © 2011-2014 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 -->
+
+</body>
+</html>
\ No newline at end of file
Added: deltaspike/site/trunk/content/staging/documentation/cdiimp.html
URL:
http://svn.apache.org/viewvc/deltaspike/site/trunk/content/staging/documentation/cdiimp.html?rev=1641921&view=auto
==============================================================================
--- deltaspike/site/trunk/content/staging/documentation/cdiimp.html (added)
+++ deltaspike/site/trunk/content/staging/documentation/cdiimp.html Wed Nov 26
20:21:53 2014
@@ -0,0 +1,476 @@
+<!DOCTYPE html>
+<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>Enable CDI For Your Java Environment</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
"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. -->
+
+<!-- Styles -->
+
+<link href="https://deltaspike.apache.org/resources/css/bootstrap.css"
rel="stylesheet">
+<link
href="https://deltaspike.apache.org/resources/css/bootstrap-responsive.css"
rel="stylesheet">
+
+<style type="text/css">
+/* Stylesheet for CodeRay to match GitHub theme | MIT License |
http://foundation.zurb.com */
+/*pre.CodeRay {background-color:#f7f7f8;}*/
+.CodeRay .line-numbers{border-right:1px solid #d8d8d8;padding:0 0.5em 0 .25em}
+.CodeRay
span.line-numbers{display:inline-block;margin-right:.5em;color:rgba(0,0,0,.3)}
+.CodeRay .line-numbers strong{font-weight: normal}
+table.CodeRay{border-collapse:separate;border-spacing:0;margin-bottom:0;border:0;background:none}
+table.CodeRay td{vertical-align: top}
+table.CodeRay td.line-numbers{text-align:right}
+table.CodeRay td.line-numbers>pre{padding:0;color:rgba(0,0,0,.3)}
+table.CodeRay td.code{padding:0 0 0 .5em}
+table.CodeRay td.code>pre{padding:0}
+.CodeRay .debug{color:#fff !important;background:#000080 !important}
+.CodeRay .annotation{color:#007}
+.CodeRay .attribute-name{color:#000080}
+.CodeRay .attribute-value{color:#700}
+.CodeRay .binary{color:#509}
+.CodeRay .comment{color:#998;font-style:italic}
+.CodeRay .char{color:#04d}
+.CodeRay .char .content{color:#04d}
+.CodeRay .char .delimiter{color:#039}
+.CodeRay .class{color:#458;font-weight:bold}
+.CodeRay .complex{color:#a08}
+.CodeRay .constant,.CodeRay .predefined-constant{color:#008080}
+.CodeRay .color{color:#099}
+.CodeRay .class-variable{color:#369}
+.CodeRay .decorator{color:#b0b}
+.CodeRay .definition{color:#099}
+.CodeRay .delimiter{color:#000}
+.CodeRay .doc{color:#970}
+.CodeRay .doctype{color:#34b}
+.CodeRay .doc-string{color:#d42}
+.CodeRay .escape{color:#666}
+.CodeRay .entity{color:#800}
+.CodeRay .error{color:#808}
+.CodeRay .exception{color:inherit}
+.CodeRay .filename{color:#099}
+.CodeRay .function{color:#900;font-weight:bold}
+.CodeRay .global-variable{color:#008080}
+.CodeRay .hex{color:#058}
+.CodeRay .integer,.CodeRay .float{color:#099}
+.CodeRay .include{color:#555}
+.CodeRay .inline{color:#00}
+.CodeRay .inline .inline{background:#ccc}
+.CodeRay .inline .inline .inline{background:#bbb}
+.CodeRay .inline .inline-delimiter{color:#d14}
+.CodeRay .inline-delimiter{color:#d14}
+.CodeRay .important{color:#555;font-weight:bold}
+.CodeRay .interpreted{color:#b2b}
+.CodeRay .instance-variable{color:#008080}
+.CodeRay .label{color:#970}
+.CodeRay .local-variable{color:#963}
+.CodeRay .octal{color:#40e}
+.CodeRay .predefined{color:#369}
+.CodeRay .preprocessor{color:#579}
+.CodeRay .pseudo-class{color:#555}
+.CodeRay .directive{font-weight:bold}
+.CodeRay .type{font-weight:bold}
+.CodeRay .predefined-type{color:inherit}
+.CodeRay .reserved,.CodeRay .keyword {color:#000;font-weight:bold}
+.CodeRay .key{color:#808}
+.CodeRay .key .delimiter{color:#606}
+.CodeRay .key .char{color:#80f}
+.CodeRay .value{color:#088}
+.CodeRay .regexp .delimiter{color:#808}
+.CodeRay .regexp .content{color:#808}
+.CodeRay .regexp .modifier{color:#808}
+.CodeRay .regexp .char{color:#d14}
+.CodeRay .regexp .function{color:#404;font-weight:bold}
+.CodeRay .string{color:#d20}
+.CodeRay .string .string .string{background:#ffd0d0}
+.CodeRay .string .content{color:#d14}
+.CodeRay .string .char{color:#d14}
+.CodeRay .string .delimiter{color:#d14}
+.CodeRay .shell{color:#d14}
+.CodeRay .shell .delimiter{color:#d14}
+.CodeRay .symbol{color:#990073}
+.CodeRay .symbol .content{color:#a60}
+.CodeRay .symbol .delimiter{color:#630}
+.CodeRay .tag{color:#008080}
+.CodeRay .tag-special{color:#d70}
+.CodeRay .variable{color:#036}
+.CodeRay .insert{background:#afa}
+.CodeRay .delete{background:#faa}
+.CodeRay .change{color:#aaf;background:#007}
+.CodeRay .head{color:#f8f;background:#505}
+.CodeRay .insert .insert{color:#080}
+.CodeRay .delete .delete{color:#800}
+.CodeRay .change .change{color:#66f}
+.CodeRay .head .head{color:#f4f}
+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 logocolor"
+
href="http://deltaspike.apache.org/index.html">Apache
+ DeltaSpike</a>
+ <div class="nav-collapse">
+ <ul class="nav">
+ <li class="active"><a
+
href="http://deltaspike.apache.org/index.html">Home</a></li>
+ <li><a
href="http://deltaspike.apache.org/documentation">Documentation</a></li>
+ <li><a
href="http://deltaspike.apache.org/javadoc.html">Javadoc</a></li>
+ <li><a
href="http://deltaspike.apache.org/documentation/source.html">Source</a></li>
+ <li><a
href="http://deltaspike.apache.org/download.html">Download</a></li>
+ <li><a
href="http://deltaspike.apache.org/community.html">Community</a></li>
+ <!-- <li><a
href="./support.html">Support</a></li> -->
+ <li><a
href="http://deltaspike.apache.org/news.html">News</a></li>
+ <li><a
+
href="http://deltaspike.apache.org/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="deltaspike.apache.org"
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>Enable CDI For Your Java Environment</h1>
+ </div>
+
+ <div id="toc" class="toc">
+ <ul class="sectlevel1">
+<li><a href="#_java_ee6_containers">Java EE6+ Containers</a></li>
+<li><a href="#_java_ee5_and_servlet_containers">Java EE5 and Servlet
Containers</a></li>
+<li><a href="#_java_se6">Java SE6+</a>
+<ul class="sectlevel2">
+<li><a href="#_declare_dependencies_for_maven_based_projects">Declare
Dependencies for Maven-based Projects</a>
+<ul class="sectlevel3">
+<li><a href="#_option_a_for_jboss_weld">Option A: For JBoss Weld</a></li>
+<li><a href="#_option_b_for_apache_openwebbeans">Option B: For Apache
OpenWebBeans</a></li>
+</ul>
+</li>
+<li><a href="#_declare_dependencies_for_maven_independent_projects">Declare
Dependencies for Maven-independent Projects</a></li>
+<li><a href="#_start_the_cdi_container_from_your_project">Start the CDI
Container from Your Project</a></li>
+</ul>
+</li>
+<li><a href="#_next">Next</a></li>
+</ul>
+ <hr>
+
+ <div id="preamble">
+<div class="sectionbody">
+<div class="paragraph">
+<p>DeltaSpike requires a CDI implementation to be available in the Java
environment that your projects are deployed to. The implementation provides the
CDI essentials, managing dependency injection and contextual lifecycles. <a
href="http://weld.cdi-spec.org/">JBoss Weld</a> and <a
href="http://openwebbeans.apache.org/">Apache OpenWebBeans (OWB)</a> are two
widely used CDI implementations. Dependent on the Java environment you choose,
some setup may be necessary as detailed here.</p>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_java_ee6_containers">Java EE6+ Containers</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p>CDI is part of Java EE6 and later so CDI implementations are included as
standard in Java EE6+ compliant environments. There is no additional CDI
configuration needed besides including the CDI-obligatory
<code>beans.xml</code> file in your project.</p>
+</div>
+<div class="paragraph">
+<p>JBoss Weld is integrated in Java EE application servers including WildFly,
JBoss Enterprise Application Platform, GlassFish, and Oracle WebLogic.</p>
+</div>
+<div class="paragraph">
+<p>Apache OpenWebBeans (OWB) is integrated in Java EE containers including
Apache TomEE, Apache Geronimo, IBM WebSphere Application Server, and SiwPas.</p>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_java_ee5_and_servlet_containers">Java EE5 and Servlet Containers</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p>CDI implementations are not distributed with Java EE5 application servers
or Servlet-only environments such as Apache TomCat and Eclipse Jetty. You can
use CDI in these environments by embedding a standalone CDI implementation.
Both JBoss Weld and Apache OpenWebBeans can be used for this task; for more
information, see the corresponding CDI implementation documentation.</p>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_java_se6">Java SE6+</h2>
+<div class="sectionbody">
+<div class="paragraph">
+<p>CDI is not part of Java SE but it can still be used. JBoss Weld and Apache
OpenWebBeans implementations can be used to act as dependency injection bean
managers but the respective containers must be booted manually.</p>
+</div>
+<div class="paragraph">
+<p>DeltaSpike provides a dedicated Container Control module to enable
applications deployed in Java SE environments to boot a CDI container. The
Container Control module consists of the API component and components specific
to the JBoss Weld, Apache OpenWebBeans and Apache OpenEJB CDI containers. The
DeltaSpike module provides a layer of abstraction from the specific CDI
containers, enabling you to write container-independent code in your
project.</p>
+</div>
+<div class="paragraph">
+<p>Instructions are provided here for adding the required resources to both
Maven-based and Maven-independent projects and subsequently booting the CDI
container from your project source code.</p>
+</div>
+<div class="sect2">
+<h3 id="_declare_dependencies_for_maven_based_projects">Declare Dependencies
for Maven-based Projects</h3>
+<div class="paragraph">
+<p>For Maven-based projects, the Container Control module is available in
Maven Central together with the other DeltaSpike modules. You must configure
your project to use the DeltaSpike Container Control API and one of the CDI
container-specific modules.</p>
+</div>
+<div class="olist arabic">
+<ol class="arabic">
+<li>
+<p>Open the project <code>pom.xml</code> file for editing</p>
+</li>
+<li>
+<p>Add the DeltaSpike Container Control API to the list of dependencies</p>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="xml"><span
class="tag"><dependency></span>
+ <span class="tag"><groupId></span>org.apache.deltaspike.cdictrl<span
class="tag"></groupId></span>
+ <span class="tag"><artifactId></span>deltaspike-cdictrl-api<span
class="tag"></artifactId></span>
+ <span class="tag"><version></span>${deltaspike.version}<span
class="tag"></version></span>
+ <span class="tag"><scope></span>compile<span
class="tag"></scope></span>
+<span class="tag"></dependency></span></code></pre>
+</div>
+</div>
+</li>
+<li>
+<p>Add CDI container dependencies for one of the container options listed
here</p>
+</li>
+</ol>
+</div>
+<div class="sect3">
+<h4 id="_option_a_for_jboss_weld">Option A: For JBoss Weld</h4>
+<div class="olist arabic">
+<ol class="arabic">
+<li>
+<p>Open the project <code>pom.xml</code> file for editing</p>
+</li>
+<li>
+<p>Add the JBoss Weld version to the list of properties, replacing the version
as desired</p>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="xml"><span
class="tag"><properties></span>
+ <span class="tag"><weld.version></span>1.1.9.Final<span
class="tag"></weld.version></span>
+<span class="tag"></properties></span></code></pre>
+</div>
+</div>
+</li>
+<li>
+<p>Add the JBoss Weld dependency to the list of dependencies</p>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="xml"><span
class="tag"><dependency></span>
+ <span class="tag"><groupId></span>org.jboss.weld.se<span
class="tag"></groupId></span>
+ <span class="tag"><artifactId></span>weld-se<span
class="tag"></artifactId></span>
+ <span class="tag"><version></span>${weld.version}<span
class="tag"></version></span>
+ <span class="tag"><scope></span>runtime<span
class="tag"></scope></span>
+<span class="tag"></dependency></span></code></pre>
+</div>
+</div>
+</li>
+<li>
+<p>Add the DeltaSpike Weld-specific Container Control module to the list of
dependencies</p>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="xml"><span
class="tag"><dependency></span>
+ <span class="tag"><groupId></span>org.apache.deltaspike.cdictrl<span
class="tag"></groupId></span>
+ <span class="tag"><artifactId></span>deltaspike-cdictrl-weld<span
class="tag"></artifactId></span>
+ <span class="tag"><version></span>${deltaspike.version}<span
class="tag"></version></span>
+ <span class="tag"><scope></span>runtime<span
class="tag"></scope></span>
+<span class="tag"></dependency></span></code></pre>
+</div>
+</div>
+</li>
+<li>
+<p>Save the <code>pom.xml</code> file changes</p>
+</li>
+<li>
+<p>Download all required dependencies</p>
+<div class="listingblock">
+<div class="content">
+<pre>mvn clean install</pre>
+</div>
+</div>
+</li>
+</ol>
+</div>
+</div>
+<div class="sect3">
+<h4 id="_option_b_for_apache_openwebbeans">Option B: For Apache
OpenWebBeans</h4>
+<div class="olist arabic">
+<ol class="arabic">
+<li>
+<p>Open the project <code>pom.xml</code> file for editing</p>
+</li>
+<li>
+<p>Add the Apache OpenWebBeans version to the list of properties, replacing
the version as desired</p>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="xml"><span
class="tag"><properties></span>
+ <span class="tag"><owb.version></span>1.2.0<span
class="tag"></owb.version></span>
+<span class="tag"></properties></span></code></pre>
+</div>
+</div>
+</li>
+<li>
+<p>Add the Apache OpenWebBeans dependencies to the list of dependencies</p>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="xml"><span
class="tag"><dependency></span>
+ <span class="tag"><groupId></span>org.apache.openwebbeans<span
class="tag"></groupId></span>
+ <span class="tag"><artifactId></span>openwebbeans-impl<span
class="tag"></artifactId></span>
+ <span class="tag"><version></span>${owb.version}<span
class="tag"></version></span>
+ <span class="tag"><scope></span>runtime<span
class="tag"></scope></span>
+<span class="tag"></dependency></span>
+
+<span class="tag"><dependency></span>
+ <span class="tag"><groupId></span>org.apache.openwebbeans<span
class="tag"></groupId></span>
+ <span class="tag"><artifactId></span>openwebbeans-spi<span
class="tag"></artifactId></span>
+ <span class="tag"><version></span>${owb.version}<span
class="tag"></version></span>
+ <span class="tag"><scope></span>compile<span
class="tag"></scope></span>
+<span class="tag"></dependency></span></code></pre>
+</div>
+</div>
+</li>
+<li>
+<p>Add the DeltaSpike Apache OpenWebBeans-specific Container Control module to
the list of dependencies</p>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="xml"><span
class="tag"><dependency></span>
+ <span class="tag"><groupId></span>org.apache.deltaspike.cdictrl<span
class="tag"></groupId></span>
+ <span class="tag"><artifactId></span>deltaspike-cdictrl-owb<span
class="tag"></artifactId></span>
+ <span class="tag"><version></span>${deltaspike.version}<span
class="tag"></version></span>
+ <span class="tag"><scope></span>runtime<span
class="tag"></scope></span>
+<span class="tag"></dependency></span></code></pre>
+</div>
+</div>
+</li>
+<li>
+<p>Save the <code>pom.xml</code> file changes</p>
+</li>
+<li>
+<p>Download all required dependencies</p>
+<div class="listingblock">
+<div class="content">
+<pre>mvn clean install</pre>
+</div>
+</div>
+</li>
+</ol>
+</div>
+</div>
+</div>
+<div class="sect2">
+<h3 id="_declare_dependencies_for_maven_independent_projects">Declare
Dependencies for Maven-independent Projects</h3>
+<div class="paragraph">
+<p>For Maven-independent projects, the Container Control module is distributed
together with the other DeltaSpike modules in
<code>distribution-fill-<version>.zip</code>. You must add two of the
files from the <code>cdictrl</code> directory to your project, namely
<code>deltaspike-cdictrl-api.jar</code> and the .jar file that corresponds to
the CDI container you have chosen. Add these files to the project
<code>WEB-INF/lib</code> or <code>EAR/lib</code> directory for .war and .ear
projects respectively.</p>
+</div>
+</div>
+<div class="sect2">
+<h3 id="_start_the_cdi_container_from_your_project">Start the CDI Container
from Your Project</h3>
+<div class="paragraph">
+<p>To start a CDI container in your application, you must instantiate a
<code>CdiContainer</code> object and call the <code>#boot</code> method. When
<code>#boot</code> is called, the <code>CdiContainer</code> scans CDI-enabled
+archives for beans and CDI extensions. An example is given in the code snippet
here. Before the application exits, <code>#shutdown</code> must be called to
correctly destroy all beans.</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="java"><span
class="keyword">import</span> <span
class="include">org.apache.deltaspike.cdise.api.CdiContainer</span>;
+<span class="keyword">import</span> <span
class="include">org.apache.deltaspike.cdise.api.CdiContainerLoader</span>;
+
+<span class="directive">public</span> <span class="type">class</span> <span
class="class">MainApp</span> {
+ <span class="directive">public</span> <span
class="directive">static</span> <span class="type">void</span> main(<span
class="predefined-type">String</span><span class="type">[]</span> args) {
+
+ CdiContainer cdiContainer = CdiContainerLoader.getCdiContainer();
+ cdiContainer.boot();
+
+ <span class="comment">// You can use CDI here</span>
+
+ cdiContainer.shutdown();
+ }
+}</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>Starting the container does not automatically start all CDI Contexts.
Contexts must be started independently using the provided
<code>ContextControl</code> class. An example of starting the Context for
<code>@ApplicationScoped</code> beans is added to the code snippet here.</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="java"><span
class="keyword">import</span> <span
class="include">org.apache.deltaspike.cdise.api.CdiContainer</span>;
+<span class="keyword">import</span> <span
class="include">org.apache.deltaspike.cdise.api.CdiContainerLoader</span>;
+<span class="keyword">import</span> <span
class="include">org.apache.deltaspike.cdise.api.ContextControl</span>;
+<span class="keyword">import</span> <span
class="include">javax.enterprise.context.ApplicationScoped</span>;
+
+<span class="directive">public</span> <span class="type">class</span> <span
class="class">MainApp</span> {
+ <span class="directive">public</span> <span
class="directive">static</span> <span class="type">void</span> main(<span
class="predefined-type">String</span><span class="type">[]</span> args) {
+
+ CdiContainer cdiContainer = CdiContainerLoader.getCdiContainer();
+ cdiContainer.boot();
+
+ <span class="comment">// Starting the application-context allows to
use @ApplicationScoped beans</span>
+ ContextControl contextControl = cdiContainer.getContextControl();
+ contextControl.startContext(ApplicationScoped.class);
+
+ <span class="comment">// You can use CDI here</span>
+
+ cdiContainer.shutdown();
+ }
+}</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>To resolve project beans, you can use the DeltaSpike
<code>BeanProvider</code> class. Whether <code>EchoService</code> is a concrete
implementation or just an interface depends on the application. In the case
that it is an interface, the corresponding implementation is resolved. The
resolved bean is a standard CDI bean and it can be used for all CDI concepts,
such as @Inject, in the class without further uses of
<code>BeanProvider</code>. An example of resolving the bean without qualifiers
is given in the code snippet here.</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="CodeRay highlight"><code data-lang="java">EchoService echoService
= BeanProvider.getContextualReference(EchoService.class, <span
class="predefined-constant">false</span>);</code></pre>
+</div>
+</div>
+</div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_next">Next</h2>
+<div class="sectionbody">
+<div class="ulist">
+<ul>
+<li>
+<p>For more information about the Container Control module, see <a
href="container-control.html">Container Control Module</a>.</p>
+</li>
+</ul>
+</div>
+</div>
+</div>
+ </div>
+
+ <hr>
+
+ <footer>
+ <p>Copyright © 2011-2014 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 -->
+
+</body>
+</html>
\ No newline at end of file