From f9eae69b148dc1bad9f63abdc4fc36787c90db04 Mon Sep 17 00:00:00 2001 From: Ilia Motornyi Date: Fri, 19 May 2017 14:39:28 +0300 Subject: Make VaadinService#isUIActive() public (#9285) --- server/src/main/java/com/vaadin/server/VaadinService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server') diff --git a/server/src/main/java/com/vaadin/server/VaadinService.java b/server/src/main/java/com/vaadin/server/VaadinService.java index e9973e132f..e05b935929 100644 --- a/server/src/main/java/com/vaadin/server/VaadinService.java +++ b/server/src/main/java/com/vaadin/server/VaadinService.java @@ -1326,14 +1326,14 @@ public abstract class VaadinService implements Serializable { * returns false and {@link #getHeartbeatTimeout() getHeartbeatTimeout} is * negative or has not yet expired. * - * @since 7.0.0 + * @since 8.1 * * @param ui * The UI whose status to check * * @return true if the UI is active, false if it could be removed. */ - private boolean isUIActive(UI ui) { + public boolean isUIActive(UI ui) { if (ui.isClosing()) { return false; } else { @@ -1347,7 +1347,7 @@ public abstract class VaadinService implements Serializable { /** * Returns whether the given session is active or whether it can be closed. *

- * A session is active if and only if its {@link #isClosing} returns false + * A session is active if and only if its {@link VaadinSession#getState()} returns {@link State#OPEN} * and {@link #getUidlRequestTimeout(VaadinSession) getUidlRequestTimeout} * is negative or has not yet expired. * -- cgit v1.2.3