diff options
author | Artur Signell <artur@vaadin.com> | 2013-02-07 08:38:02 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2013-02-07 10:41:15 +0200 |
commit | 179e672b5d3ce8c4c972dcfacbdbd39c5a08d6fa (patch) | |
tree | a3759572e46da36fecacf2d20310b2b1e853e726 /server/src | |
parent | bbf4571564d168fc2ad4c27cfb71e9a9b6023f07 (diff) | |
download | vaadin-framework-179e672b5d3ce8c4c972dcfacbdbd39c5a08d6fa.tar.gz vaadin-framework-179e672b5d3ce8c4c972dcfacbdbd39c5a08d6fa.zip |
Made getServlet and getPortlet public (#10882)
This change enables developer to get a reference to the VaadinServlet/VaadinPortlet class without using thread locals (#10882)
Change-Id: I7cb87b6ddb6f2ac3c46f7652a807363b336cdc4e
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/com/vaadin/server/VaadinPortletService.java | 7 | ||||
-rw-r--r-- | server/src/com/vaadin/server/VaadinServletService.java | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/server/src/com/vaadin/server/VaadinPortletService.java b/server/src/com/vaadin/server/VaadinPortletService.java index e59ea7fd5e..8c1e7af0fa 100644 --- a/server/src/com/vaadin/server/VaadinPortletService.java +++ b/server/src/com/vaadin/server/VaadinPortletService.java @@ -46,7 +46,12 @@ public class VaadinPortletService extends VaadinService { } } - protected VaadinPortlet getPortlet() { + /** + * Retrieves a reference to the portlet associated with this service. + * + * @return A reference to the VaadinPortlet this service is using + */ + public VaadinPortlet getPortlet() { return portlet; } diff --git a/server/src/com/vaadin/server/VaadinServletService.java b/server/src/com/vaadin/server/VaadinServletService.java index 71f47ea217..7120e3a5c5 100644 --- a/server/src/com/vaadin/server/VaadinServletService.java +++ b/server/src/com/vaadin/server/VaadinServletService.java @@ -44,7 +44,12 @@ public class VaadinServletService extends VaadinService { } } - protected VaadinServlet getServlet() { + /** + * Retrieves a reference to the servlet associated with this service. + * + * @return A reference to the VaadinServlet this service is using + */ + public VaadinServlet getServlet() { return servlet; } |