ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1652848 - /ace/trunk/org.apache.ace.webui.vaadin/src/org/apache/ace/webui/vaadin/Activator.java
Date Sun, 18 Jan 2015 20:37:38 GMT
Author: jawi
Date: Sun Jan 18 20:37:38 2015
New Revision: 1652848

URL: http://svn.apache.org/r1652848
Log:
ACE-472 - Put Vaadin into production mode by default.


Modified:
    ace/trunk/org.apache.ace.webui.vaadin/src/org/apache/ace/webui/vaadin/Activator.java

Modified: ace/trunk/org.apache.ace.webui.vaadin/src/org/apache/ace/webui/vaadin/Activator.java
URL: http://svn.apache.org/viewvc/ace/trunk/org.apache.ace.webui.vaadin/src/org/apache/ace/webui/vaadin/Activator.java?rev=1652848&r1=1652847&r2=1652848&view=diff
==============================================================================
--- ace/trunk/org.apache.ace.webui.vaadin/src/org/apache/ace/webui/vaadin/Activator.java (original)
+++ ace/trunk/org.apache.ace.webui.vaadin/src/org/apache/ace/webui/vaadin/Activator.java Sun
Jan 18 20:37:38 2015
@@ -51,15 +51,20 @@ public class Activator extends Dependenc
                 .setRequired(true)
             )
             );
+        
+        Properties props = new Properties();
+        // ACE-472 - put Vaadin in production mode...
+        props.put("init.productionMode", "true");
+        
         // register the main application for the ACE UI client
         manager.add(createComponent()
-            .setInterface(Servlet.class.getName(), null)
+            .setInterface(Servlet.class.getName(), props)
             .setImplementation(VaadinServlet.class)
             .add(createConfigurationDependency()
                 .setPid(PID).setPropagate(true))
             );
 
-        Properties props = new Properties();
+        props = new Properties();
         props.put(UIExtensionFactory.EXTENSION_POINT_KEY, UIExtensionFactory.EXTENSION_POINT_VALUE_TARGET);
         props.put(Constants.SERVICE_RANKING, Integer.valueOf(100));
 



Mime
View raw message