Package com.vaadin.quarkus.context
Class VaadinSessionScopedContext
- java.lang.Object
-
- com.vaadin.quarkus.context.AbstractContext
-
- com.vaadin.quarkus.context.VaadinSessionScopedContext
-
- All Implemented Interfaces:
io.quarkus.arc.InjectableContext,javax.enterprise.context.spi.AlterableContext,javax.enterprise.context.spi.Context
public class VaadinSessionScopedContext extends AbstractContext
Context for@VaadinSessionScopedbeans.Stores contextuals in
VaadinSession. Other Vaadin CDI contexts are stored in the correspondingVaadinSessionScopedcontext.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description VaadinSessionScopedContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ContextualStoragegetContextualStorage(javax.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()booleanisActive()-
Methods inherited from class com.vaadin.quarkus.context.AbstractContext
checkActive, destroy, destroy, destroyAllActive, destroyAllActive, destroyBean, get, get, getActiveContextualStorages, getState
-
-
-
-
Method Detail
-
getContextualStorage
protected ContextualStorage getContextualStorage(javax.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
public Class<? extends Annotation> getScope()
-
isActive
public boolean isActive()
-
-