Package com.vaadin.cdi.context
Class RouteScopedContext
java.lang.Object
com.vaadin.cdi.util.AbstractContext
com.vaadin.cdi.context.RouteScopedContext
- All Implemented Interfaces:
jakarta.enterprise.context.spi.Context
Context for
@RouteScoped beans.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<ContextualStorage> 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()voidbooleanisActive()Methods inherited from class com.vaadin.cdi.util.AbstractContext
checkActive, destroy, destroyAllActive, destroyAllActive, destroyBean, get, get, isPassivatingScope
-
Constructor Details
-
RouteScopedContext
public RouteScopedContext(jakarta.enterprise.inject.spi.BeanManager beanManager)
-
-
Method Details
-
init
-
getScope
-
isActive
public boolean isActive() -
getActiveContextualStorages
- Overrides:
getActiveContextualStoragesin classAbstractContext
-
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:
createIfNotExist- whether a ContextualStorage shall get created if it doesn't yet exist.- Returns:
- the underlying storage
-