You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by cm...@apache.org on 2012/09/13 18:13:38 UTC

svn commit: r1384391 - /incubator/deltaspike/site/trunk/content/deltaspike/documentation.mdtext

Author: cmoulliard
Date: Thu Sep 13 16:13:37 2012
New Revision: 1384391

URL: http://svn.apache.org/viewvc?rev=1384391&view=rev
Log:
Modify source page

Modified:
    incubator/deltaspike/site/trunk/content/deltaspike/documentation.mdtext

Modified: incubator/deltaspike/site/trunk/content/deltaspike/documentation.mdtext
URL: http://svn.apache.org/viewvc/incubator/deltaspike/site/trunk/content/deltaspike/documentation.mdtext?rev=1384391&r1=1384390&r2=1384391&view=diff
==============================================================================
--- incubator/deltaspike/site/trunk/content/deltaspike/documentation.mdtext (original)
+++ incubator/deltaspike/site/trunk/content/deltaspike/documentation.mdtext Thu Sep 13 16:13:37 2012
@@ -29,26 +29,26 @@ as it uses the ServiceLoader of JDK to d
 
 To bootstrap a CDI container in your Java application, you just need to instantiate the CdiContainer and call the boot method.
 
-     import org.apache.deltaspike.cdise.api.CdiContainer;
-     import org.apache.deltaspike.cdise.api.CdiContainerLoader;
-     ....
+    import org.apache.deltaspike.cdise.api.CdiContainer;
+    import org.apache.deltaspike.cdise.api.CdiContainerLoader;
+    ....
 
-     public class SimpleApp {
-        public static void main(String[] args) {
+    public class SimpleApp {
+       public static void main(String[] args) {
 
-            CdiContainer CdiContainer = CdiContainerLoader.getCdiContainer();
-            CdiContainer.boot();
+           CdiContainer CdiContainer = CdiContainerLoader.getCdiContainer();
+           CdiContainer.boot();
 
-            // You can use CDI here
+           // You can use CDI here
 
-            CdiContainer.shutdown();
-        }
+           CdiContainer.shutdown();
+       }
     }
 
 When boot is called, the CdiContainer will scan the whole classpath for Beans and CDI extensions available.
 
-Note: booting the container does <i>not</i> automatically start all CDI Contexts! Depending on the underlying CDI container you might need to invoke `getContextControl()
-and execute ContextControl#startContext(Class)` or `ContextControl#startContexts()`.
+Note: Booting the container does <i>not</i> automatically start all CDI Contexts! Depending on the underlying CDI container you might need to invoke `getContextControl()
+and execute `ContextControl#startContext(Class)` or `ContextControl#startContexts()`.
 
 To inject a bean in this project, you should use the `BeanManagerProvider` or the `BeanProvider` like this
 
@@ -58,8 +58,8 @@ When you have finish the job, simply cal
 
 Remarks :
 
-- Java-EE5 : Java-EE5 application servers as well as pure servlet containers like Apache Tomcat don't provide a CDI implementation out-of-the-box. So don't forget to setup the CDI implementation of your choice.
-- Java-EE6+ : 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.
+* Java-EE5 : Java-EE5 application servers as well as pure servlet containers like Apache Tomcat don't provide a CDI implementation out-of-the-box. So don't forget to setup the CDI implementation of your choice.
+* Java-EE6+ : 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.
 
 # A more complex case