Author: buildbot
Date: Tue Feb  4 21:12:36 2014
New Revision: 896433

Log:
Staging update by buildbot for openwebbeans

Added:
    websites/staging/openwebbeans/trunk/content/owbconfig.html
Modified:
    websites/staging/openwebbeans/trunk/content/   (props changed)

Propchange: websites/staging/openwebbeans/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue Feb  4 21:12:36 2014
@@ -1 +1 @@
-1564496
+1564497

Added: websites/staging/openwebbeans/trunk/content/owbconfig.html
==============================================================================
--- websites/staging/openwebbeans/trunk/content/owbconfig.html (added)
+++ websites/staging/openwebbeans/trunk/content/owbconfig.html Tue Feb  4 
21:12:36 2014
@@ -0,0 +1,171 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    <meta charset="utf-8">
+    <title>Apache OpenWebBeans</title>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta name="description" content="">
+    <meta name="author" content="">
+
+    <!-- Le styles -->
+    <link href="./resources/css/bootstrap.css" rel="stylesheet">
+    <style type="text/css">
+        body {
+            padding-top: 60px;
+            padding-bottom: 40px;
+        }
+    </style>
+    <link 
href="http://twitter.github.com/bootstrap/assets/css/bootstrap-responsive.css"; 
rel="stylesheet">
+    <link href="./resources/css/main.css" rel="stylesheet">
+
+</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="./resources/images/logo_dbg-small.png" height="25px"
+                                                    alt="owb_logo_small"/></a>
+
+            <div class="nav-collapse">
+                <ul class="nav">
+                    <li class="active"><a href="./index.html">Home</a></li>
+                    <li><a href="./documentation.html">Documentation</a></li>
+                    <li><a href="./source.html">Source</a></li>
+                    <li><a href="./download.html">Download</a></li>
+                    <li><a href="./community.html">Community</a></li>
+                    <!-- <li><a href="./news.html">News</a></li> -->
+                    <li class="dropdown">
+                        <a class="dropdown-toggle"
+                           data-toggle="dropdown"
+                           href="#">
+                            Misc
+                            <b class="caret"></b>
+                        </a>
+                        <ul class="dropdown-menu">
+                            <li><a href="http://www.apache.org";>Apache 
Home</a></li>
+                            <li><a href="./misc/contact.html">Contact</a></li>
+                            <li><a href="./misc/legal.html">Legal</a></li>
+                            <li><a 
href="http://www.apache.org/foundation/sponsorship.html";>Sponsorship</a></li>
+                            <li><a 
href="http://www.apache.org/foundation/thanks.html";>Thanks</a></li>
+                            <!-- <li class="divider"/> -->
+                        </ul>
+                    </li>
+                </ul>
+            </div>
+            <!--/.nav-collapse -->
+            <form id="search-form" action="http://www.google.com/search"; 
method="get" class="navbar-search pull-right">
+                <input value="openwebbeans.apache.org" name="sitesearch" 
type="hidden"/>
+                <input class="search-query" name="q" id="query" type="text"/>
+            </form>
+            <script type="text/javascript" 
src="http://www.google.com/coop/cse/brand?form=search-form";></script>
+        </div>
+    </div>
+</div>
+
+<div class="container">
+
+
+        <div id="OwbContent_" class="wiki-content">
+<h1 id="openwebbeans-and-javase">OpenWebBeans and JavaSE</h1>
+<p>To add OpenWebBeans to your javaSE project you need to take the following 
steps:</p>
+<ol>
+<li>Add required jars to your project</li>
+<li>Bootstrap OpenWebBeans</li>
+<li>Done! Congratulations.</li>
+</ol>
+<h3 id="adding-required-jars-to-your-project">Adding required jars to your 
project</h3>
+<p>You can add OpenWebBeans to your project manually by adding jars or with 
Apache Maven. 
+How to download is explained here: <a 
href="/openwebbeans/download.html">download page</a>.</p>
+<p>For JavaSE you need:</p>
+<ul>
+<li><strong>openwebbeans-spi.jar</strong></li>
+<li><strong>openwebbeans-impl.jar</strong></li>
+</ul>
+<p>Those two parts of OpenWebBeans are what you could call "system core".
+These are the only OWB artifacts you need for JavaSE capabilities and 
+for the time being the existing plugins basically just adds JavaEE 
capabilities. </p>
+<p>You also need to add some spec API jars for the CDI, atinject and 
interceptors 
+specifications.</p>
+<ul>
+<li><strong>geronimo-jcdi_1.0_spec.jar</strong></li>
+<li><strong>geronimo-atinject_1.0_spec.jar</strong></li>
+<li><strong>geronimo-interceptor_1.1_spec.jar</strong></li>
+</ul>
+<p>After you have added the jars described above to your project accordingly 
+to the download page and added them to your projects classpath.</p>
+<h3 id="bootstrapping-openwebbeans">Bootstrapping OpenWebBeans</h3>
+<p>For now we recommend two ways for booting up the OpenWebBeans container: 
+<a 
href="http://deltaspike.apache.org/documentation.html#with-java-se";><strong>Deltaspike
 CdiCtrl</strong></a> or booting it yourself in i.e. a standard main method. 
</p>
+<h4 id="option-number-one-apache-deltaspike-cdictrl">Option number one - 
Apache DeltaSpike CdiCtrl</h4>
+<p>Apache DeltaSpike is a set of portable CDI Extensions. It contains a module 
which allows
+to control various CDI-Containers without having to change your own code. It 
contains an API
+and multiple implementations for a few CDI Containers.</p>
+<p>For most projects <a 
href="http://deltaspike.apache.org/documentation.html#with-java-se";><strong>Deltaspike
 CdiCtrl</strong></a> will be the smoother choice to boot your project
+in JavaSE . </p>
+<h4 id="option-number-two-booting-yourself">Option number two - booting 
yourself**</h4>
+<p>Going native and booting Apache OpenWebBeans yourself could however be 
useful if you need full control 
+to do advanced things. </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">private</span> <span class="kd">static</span> <span 
class="n">ContainerLifecycle</span> <span class="n">lifecycle</span> <span 
class="o">=</span> <span class="kc">null</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">lifecycle</span> <span class="o">=</span> <span 
class="n">WebBeansContext</span><span class="o">.</span><span 
class="na">currentInstance</span><span class="o">().</span><span 
class="na">getService</span><span class="o">(</span><span 
class="n">ContainerLifecycle</span><span class="o">.</span><span 
class="na">class</span><span class="o">);</span>
+        <span class="n">lifecycle</span><span class="o">.</span><span 
class="na">startApplication</span><span class="o">(</span><span 
class="kc">null</span><span class="o">);</span>
+    <span class="o">}</span>
+
+    <span class="kd">public</span> <span class="kd">static</span> <span 
class="kt">void</span> <span class="nf">shutdown</span><span 
class="o">()</span> <span class="o">{</span>
+        <span class="n">lifecycle</span><span class="o">.</span><span 
class="na">stopApplication</span><span class="o">(</span><span 
class="kc">null</span><span class="o">);</span>
+    <span class="o">}</span>
+<span class="o">}</span>
+</pre></div>
+
+
+<p>From here you might want to look at our samples selection: <a 
href="/openwebbeans/samples.html">samples</a>.</p>
+        </div>
+
+        <hr>
+
+        <footer>
+            <p>
+                <a class="brand" href="http://www.apache.org";><img 
src="http://www.apache.org/images/asf_logo_wide.png"; height="55px" 
alt="asf_feather"/></a>
+            </p>
+            <p>Copyright &copy; 2008-2013 The Apache Software Foundation, 
Licensed under the Apache License, Version 2.0.</p>
+            <p>OpenWebBeans, 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=".//resources/js/jquery.js"></script>
+    <script src=".//resources/js/bootstrap-transition.js"></script>
+    <script src=".//resources/js/bootstrap-alert.js"></script>
+    <script src=".//resources/js/bootstrap-modal.js"></script>
+    <script src=".//resources/js/bootstrap-dropdown.js"></script>
+    <script src=".//resources/js/bootstrap-scrollspy.js"></script>
+    <script src=".//resources/js/bootstrap-tab.js"></script>
+    <script src=".//resources/js/bootstrap-tooltip.js"></script>
+    <script src=".//resources/js/bootstrap-popover.js"></script>
+    <script src=".//resources/js/bootstrap-button.js"></script>
+    <script src=".//resources/js/bootstrap-collapse.js"></script>
+    <script src=".//resources/js/bootstrap-carousel.js"></script>
+    <script src=".//resources/js/bootstrap-typeahead.js"></script>
+
+</body></html>
+
+
+
+


Reply via email to