@Typed
public class WindowContextImpl
extends org.apache.deltaspike.core.util.context.AbstractContext
implements org.apache.deltaspike.core.spi.scope.window.WindowContext
WindowScoped beans.
This also implements the interface to control the id of
the currently active 'window' (e.g. a web browser tab).| Constructor and Description |
|---|
WindowContextImpl(javax.enterprise.inject.spi.BeanManager beanManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateWindow(String windowId) |
boolean |
closeWindow(String windowId) |
protected org.apache.deltaspike.core.util.context.ContextualStorage |
getContextualStorage(boolean createIfNotExist) |
String |
getCurrentWindowId() |
Class<? extends Annotation> |
getScope() |
boolean |
isActive()
The WindowContext is active once a current windowId is set for the current Thread.
|
public WindowContextImpl(javax.enterprise.inject.spi.BeanManager beanManager)
public void activateWindow(String windowId)
activateWindow in interface org.apache.deltaspike.core.spi.scope.window.WindowContextpublic String getCurrentWindowId()
getCurrentWindowId in interface org.apache.deltaspike.core.spi.scope.window.WindowContextpublic boolean closeWindow(String windowId)
closeWindow in interface org.apache.deltaspike.core.spi.scope.window.WindowContextprotected org.apache.deltaspike.core.util.context.ContextualStorage getContextualStorage(boolean createIfNotExist)
getContextualStorage in class org.apache.deltaspike.core.util.context.AbstractContextpublic Class<? extends Annotation> getScope()
getScope in interface javax.enterprise.context.spi.Contextpublic boolean isActive()
isActive in interface javax.enterprise.context.spi.ContextCopyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.