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