Package com.sun.faces.cdi.clientwindow
Class ClientWindowScopeContext
java.lang.Object
com.sun.faces.cdi.clientwindow.ClientWindowScopeContext
- All Implemented Interfaces:
jakarta.enterprise.context.spi.Context,Serializable
@Typed
public class ClientWindowScopeContext
extends Object
implements jakarta.enterprise.context.spi.Context, Serializable
The CDI context for CDI ClientWindowScoped beans.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Tget(jakarta.enterprise.context.spi.Contextual<T> contextual) Get the ClientWindowScoped bean for the given contextual.<T> Tget(jakarta.enterprise.context.spi.Contextual<T> contextual, jakarta.enterprise.context.spi.CreationalContext<T> creational) Get the existing instance of the ClientWindowScoped bean for the given contextual or create a new one.Class<? extends Annotation>getScope()Get the class of the scope object.booleanisActive()
-
Constructor Details
-
ClientWindowScopeContext
public ClientWindowScopeContext()Constructor.
-
-
Method Details
-
get
public <T> T get(jakarta.enterprise.context.spi.Contextual<T> contextual) Get the ClientWindowScoped bean for the given contextual.- Specified by:
getin interfacejakarta.enterprise.context.spi.Context- Type Parameters:
T- the type.- Parameters:
contextual- the contextual.- Returns:
- the client window scoped bean, or null if not found.
-
get
public <T> T get(jakarta.enterprise.context.spi.Contextual<T> contextual, jakarta.enterprise.context.spi.CreationalContext<T> creational) Get the existing instance of the ClientWindowScoped bean for the given contextual or create a new one.- Specified by:
getin interfacejakarta.enterprise.context.spi.Context- Type Parameters:
T- the type.- Parameters:
contextual- the contextual.creational- the creational.- Returns:
- the instance.
- Throws:
jakarta.enterprise.context.ContextNotActiveException- when the context is not active.
-
getScope
Get the class of the scope object.- Specified by:
getScopein interfacejakarta.enterprise.context.spi.Context- Returns:
- the class.
-
isActive
public boolean isActive()- Specified by:
isActivein interfacejakarta.enterprise.context.spi.Context
-