Package com.vaadin.quarkus.context
Class RouteScopedContext
- java.lang.Object
-
- com.vaadin.quarkus.context.AbstractContext
-
- com.vaadin.quarkus.context.RouteScopedContext
-
- All Implemented Interfaces:
io.quarkus.arc.InjectableContext,javax.enterprise.context.spi.AlterableContext,javax.enterprise.context.spi.Context
public class RouteScopedContext extends AbstractContext
Context forNormalRouteScopedbeans.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRouteScopedContext.ContextualStorageManager
-
Constructor Summary
Constructors Constructor Description RouteScopedContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<ContextualStorage>getActiveContextualStorages()Gets all active contextual storages.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, getState
-
-
-
-
Method Detail
-
getScope
public Class<? extends Annotation> getScope()
-
isActive
public boolean isActive()
-
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
-
getActiveContextualStorages
protected List<ContextualStorage> getActiveContextualStorages()
Description copied from class:AbstractContextGets all active contextual storages.- Overrides:
getActiveContextualStoragesin classAbstractContext- Returns:
- a list of contextual storages.
-
-