Top Description Fields Constructors Methods
com.sun.faces.cdi.clientwindow

public Class ClientWindowScopeContextManager

extends Object
Class Inheritance
Static Imports
com.sun.faces.config.WebConfiguration.BooleanWebContextInitParameter.EnableDistributable, .WebConfiguration.WebContextInitParameter.NumberOfClientWindows, com.sun.faces.context.SessionMap.getMutex, java.util.logging.Level.FINEST

The manager that deals with CDI ClientWindowScoped beans.

Field Summary

Modifier and TypeField and Description
private static final String
private final boolean
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public <
the type.
T
>
T

Returns:

the value or null if not found.
createBean
(FacesContext
the faces context.
facesContext
,
Contextual<T>
the contextual.
contextual
,
CreationalContext<T>
the creational.
creational
)

Create the bean.

public <
the type.
T
>
T

Returns:

the value or null if not found.
getBean
(FacesContext
the faces context.
facesContext
,
Contextual<T>
the contextual.
contextual
)

Get the value from the ClientWindow-map (or null if not found).

private Map<String, ClientWindowScopeContextObject<T>>

Returns:

the context map.
getContextMap
(FacesContext
the Faces context.
facesContext
)

Get the context map.

private Map<String, ClientWindowScopeContextObject<T>>

Returns:

the context map.
getContextMap
(FacesContext
the Faces context.
facesContext
,
boolean
flag to indicate if we are creating the context map.
create
)

Get the context map.

protected String
public void
sessionDestroyed(HttpSessionEvent
the HTTP session event.
httpSessionEvent
)

Called when a session destroyed.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CLIENT_WINDOW_CONTEXTSback to summary
private static final String CLIENT_WINDOW_CONTEXTS
distributableback to summary
private final boolean distributable
LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

ClientWindowScopeContextManagerback to summary
public ClientWindowScopeContextManager()

Method Detail

createBeanback to summary
public <T> T createBean(FacesContext facesContext, Contextual<T> contextual, CreationalContext<T> creational)

Create the bean.

Parameters
<T>
the type.
facesContext:FacesContext

the faces context.

contextual:Contextual<T>

the contextual.

creational:CreationalContext<T>

the creational.

Returns:T

the value or null if not found.

getBeanback to summary
public <T> T getBean(FacesContext facesContext, Contextual<T> contextual)

Get the value from the ClientWindow-map (or null if not found).

Parameters
<T>
the type.
facesContext:FacesContext

the faces context.

contextual:Contextual<T>

the contextual.

Returns:T

the value or null if not found.

Annotations
@SuppressWarnings:unchecked
getContextMapback to summary
private Map<String, ClientWindowScopeContextObject<T>> getContextMap(FacesContext facesContext)

Get the context map.

Parameters
facesContext:FacesContext

the Faces context.

Returns:Map<String, ClientWindowScopeContextObject<T>>

the context map.

getContextMapback to summary
private Map<String, ClientWindowScopeContextObject<T>> getContextMap(FacesContext facesContext, boolean create)

Get the context map.

Parameters
facesContext:FacesContext

the Faces context.

create:boolean

flag to indicate if we are creating the context map.

Returns:Map<String, ClientWindowScopeContextObject<T>>

the context map.

Annotations
@SuppressWarnings:unchecked
getCurrentClientWindowIdback to summary
protected String getCurrentClientWindowId(FacesContext facesContext)
sessionDestroyedback to summary
public void sessionDestroyed(HttpSessionEvent httpSessionEvent)

Called when a session destroyed.

Parameters
httpSessionEvent:HttpSessionEvent

the HTTP session event.

Annotations
@SuppressWarnings:unchecked