You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by st...@apache.org on 2013/04/05 12:11:04 UTC

svn commit: r1464905 - /incubator/deltaspike/site/trunk/content/deltaspike/core.mdtext

Author: struberg
Date: Fri Apr  5 10:11:03 2013
New Revision: 1464905

URL: http://svn.apache.org/r1464905
Log:
add info about ProjectStage configuration

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

Modified: incubator/deltaspike/site/trunk/content/deltaspike/core.mdtext
URL: http://svn.apache.org/viewvc/incubator/deltaspike/site/trunk/content/deltaspike/core.mdtext?rev=1464905&r1=1464904&r2=1464905&view=diff
==============================================================================
--- incubator/deltaspike/site/trunk/content/deltaspike/core.mdtext (original)
+++ incubator/deltaspike/site/trunk/content/deltaspike/core.mdtext Fri Apr  5 10:11:03 2013
@@ -171,6 +171,15 @@ Usage of a custom project stage:
 
 `ProjectStageProducer` provides the producer method which allows to inject the current project-stage. However, in some cases it's needed to use project-stages also during the bootstrapping process of the CDI container and you can't use injection. In such cases you can use `ProjectStageProducer.getInstance().getProjectStage()` to resolve the current project-stage. This helper also contains helpers for unit-tests - e.g. `#setProjectStage`. However, those methods shouldn't be needed for users (we just need them for testing different project-stage scenarios).
 
+### Setting the active ProjectStage
+
+For setting the ProjectStage which shall get used in your application you can specify
+it in a few ways. The underlying mechanism used to determine the string is the ConfigResolver.
+E.g.:
+    
+    :::java 
+    -Dorg.apache.deltaspike.ProjectStage=Development
+
 ## Low-level configurations
 
 ### ConfigResolver