Package com.vaadin.cdi.context
Class VaadinServiceScopedContext
java.lang.Object
com.vaadin.cdi.util.AbstractContext
com.vaadin.cdi.context.VaadinServiceScopedContext
- All Implemented Interfaces:
jakarta.enterprise.context.spi.Context
Context for
@VaadinServiceScoped beans.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsConstructorDescriptionVaadinServiceScopedContext(jakarta.enterprise.inject.spi.BeanManager beanManager) -
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
-
VaadinServiceScopedContext
public VaadinServiceScopedContext(jakarta.enterprise.inject.spi.BeanManager beanManager)
-
-
Method Details
-
init
public void init(jakarta.enterprise.inject.spi.BeanManager beanManager) -
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
-
getScope
-
isActive
public boolean isActive()
-