Package com.vaadin.quarkus.context
Class ContextUtils
java.lang.Object
com.vaadin.quarkus.context.ContextUtils
A modified copy of org.apache.deltaspike.core.util.ContextUtils.
A set of utility methods for working with contexts.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisContextActive(Class<? extends Annotation> scopeAnnotationClass) Checks if the context for the given scope annotation is active.static booleanisContextActive(Class<? extends Annotation> scopeAnnotationClass, jakarta.enterprise.inject.spi.BeanManager beanManager) Checks if the context for the given scope annotation is active.
-
Method Details
-
isContextActive
Checks if the context for the given scope annotation is active.- Parameters:
scopeAnnotationClass- The scope annotation (e.g. @RequestScoped.class)- Returns:
- If the context is active.
-
isContextActive
public static boolean isContextActive(Class<? extends Annotation> scopeAnnotationClass, jakarta.enterprise.inject.spi.BeanManager beanManager) Checks if the context for the given scope annotation is active.- Parameters:
scopeAnnotationClass- The scope annotation (e.g. @RequestScoped.class)beanManager- TheBeanManager- Returns:
- If the context is active.
-