Package com.vaadin.quarkus.context
Class UIScopedContext
java.lang.Object
com.vaadin.quarkus.context.AbstractContext
com.vaadin.quarkus.context.UIScopedContext
- All Implemented Interfaces:
io.quarkus.arc.InjectableContext,jakarta.enterprise.context.spi.AlterableContext,jakarta.enterprise.context.spi.Context
UIScopedContext is the context for
@NormalUIScoped
beans.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.quarkus.arc.InjectableContext
io.quarkus.arc.InjectableContext.ContextState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()protected ContextualStoragegetContextualStorage(jakarta.enterprise.context.spi.Contextual<?> contextual, boolean createIfNotExist) An implementation has to return the underlying storage which contains the items held in the Context.Class<? extends Annotation> getScope()io.quarkus.arc.InjectableContext.ContextStategetState()booleanisActive()Methods inherited from class com.vaadin.quarkus.context.AbstractContext
checkActive, destroy, destroyAllActive, destroyAllActive, destroyBean, get, get, getActiveContextualStoragesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.arc.InjectableContext
destroy, getIfActive, getStateIfActive, isNormal
-
Constructor Details
-
UIScopedContext
public UIScopedContext()
-
-
Method Details
-
getContextualStorage
protected ContextualStorage getContextualStorage(jakarta.enterprise.context.spi.Contextual<?> contextual, boolean createIfNotExist) Description copied from class:AbstractContextAn implementation has to return the underlying storage which contains the items held in the Context.- Specified by:
getContextualStoragein classAbstractContext- Parameters:
contextual- the contextual typecreateIfNotExist- whether a ContextualStorage shall get created if it doesn't yet exist.- Returns:
- the underlying storage
-
getScope
-
isActive
public boolean isActive() -
destroy
public void destroy()- Specified by:
destroyin interfaceio.quarkus.arc.InjectableContext- Overrides:
destroyin classAbstractContext
-
getState
public io.quarkus.arc.InjectableContext.ContextState getState()- Specified by:
getStatein interfaceio.quarkus.arc.InjectableContext- Overrides:
getStatein classAbstractContext
-