You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by ml...@apache.org on 2011/09/09 17:55:43 UTC
svn commit: r1167259 - in
/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5:
SymbolConstants.java TapestryFilter.java
Author: mlusetti
Date: Fri Sep 9 15:55:43 2011
New Revision: 1167259
URL: http://svn.apache.org/viewvc?rev=1167259&view=rev
Log:
TAP5-1485 Makes the symbol value a constant
Modified:
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/SymbolConstants.java
tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/TapestryFilter.java
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/SymbolConstants.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/SymbolConstants.java?rev=1167259&r1=1167258&r2=1167259&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/SymbolConstants.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/SymbolConstants.java Fri Sep 9 15:55:43 2011
@@ -27,6 +27,13 @@ import org.apache.tapestry5.services.jav
public class SymbolConstants
{
/**
+ * A comma separated list of execution modes used to control how the application is initialized.
+ * Each modes can contribute a list (comma separated) of Module classes to be loaded during startup,
+ * the order in which they appear is preserved.
+ * The default value is: <code>production</code>.
+ */
+ public static final String EXECUTION_MODE = "tapestry.execution-mode";
+ /**
* Indicates whether Tapestry is running in production mode or developer mode. The primary difference is how
* exceptions are reported.
*/
Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/TapestryFilter.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/TapestryFilter.java?rev=1167259&r1=1167258&r2=1167259&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/TapestryFilter.java (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/TapestryFilter.java Fri Sep 9 15:55:43 2011
@@ -98,7 +98,7 @@ public class TapestryFilter implements F
}
};
- String executionMode = System.getProperty("tapestry.execution-mode", "production");
+ String executionMode = System.getProperty(SymbolConstants.EXECUTION_MODE, "production");
TapestryAppInitializer appInitializer = new TapestryAppInitializer(logger, provider,
filterName, executionMode);