diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-09-06 13:24:33 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-09-06 17:07:45 +0300 |
commit | 18d4096bc40fa9a306a1c4ad650c7faf3b5824fb (patch) | |
tree | aa7bd8de4d645dc3b926ff3fe98f395a74477300 /server | |
parent | a223440582c2d5160c27615e13eab19ce55c1ae4 (diff) | |
download | vaadin-framework-18d4096bc40fa9a306a1c4ad650c7faf3b5824fb.tar.gz vaadin-framework-18d4096bc40fa9a306a1c4ad650c7faf3b5824fb.zip |
Remove VaadinSession.isProductionMode() (#9402)
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/server/BootstrapHandler.java | 5 | ||||
-rw-r--r-- | server/src/com/vaadin/server/VaadinSession.java | 13 |
2 files changed, 3 insertions, 15 deletions
diff --git a/server/src/com/vaadin/server/BootstrapHandler.java b/server/src/com/vaadin/server/BootstrapHandler.java index 4ebac73b6b..ffd036d66d 100644 --- a/server/src/com/vaadin/server/BootstrapHandler.java +++ b/server/src/com/vaadin/server/BootstrapHandler.java @@ -365,7 +365,8 @@ public abstract class BootstrapHandler implements RequestHandler { JSONObject defaults = getDefaultParameters(context); JSONObject appConfig = getApplicationParameters(context); - boolean isDebug = !context.getApplication().isProductionMode(); + boolean isDebug = !context.getApplication().getConfiguration() + .isProductionMode(); builder.append("vaadin.setDefaults("); appendJsonObject(builder, defaults, isDebug); @@ -450,7 +451,7 @@ public abstract class BootstrapHandler implements RequestHandler { + VaadinServlet.WIDGETSET_DIRECTORY_PATH; defaults.put("widgetsetBase", widgetsetBase); - if (!application.isProductionMode()) { + if (!application.getConfiguration().isProductionMode()) { defaults.put("debug", true); } diff --git a/server/src/com/vaadin/server/VaadinSession.java b/server/src/com/vaadin/server/VaadinSession.java index c95dc9ac22..05b6aed96a 100644 --- a/server/src/com/vaadin/server/VaadinSession.java +++ b/server/src/com/vaadin/server/VaadinSession.java @@ -886,19 +886,6 @@ public class VaadinSession implements HttpSessionBindingListener, Serializable { CurrentInstance.setInheritable(VaadinSession.class, session); } - /** - * Check whether this application is in production mode. If an application - * is in production mode, certain debugging facilities are not available. - * - * @return the status of the production mode flag - * - * @since 7.0 - */ - @Deprecated - public boolean isProductionMode() { - return configuration.isProductionMode(); - } - public void addUIProvider(UIProvider uIProvider) { uiProviders.add(uIProvider); } |