@Typed public abstract class ContextUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isContextActive(Class<? extends java.lang.annotation.Annotation> scopeAnnotationClass)
Checks if the context for the given scope annotation is active.
|
static boolean |
isContextActive(Class<? extends java.lang.annotation.Annotation> scopeAnnotationClass,
javax.enterprise.inject.spi.BeanManager beanManager)
Checks if the context for the given scope annotation is active.
|
public static boolean isContextActive(Class<? extends java.lang.annotation.Annotation> scopeAnnotationClass)
scopeAnnotationClass
- The scope annotation (e.g. @RequestScoped.class)public static boolean isContextActive(Class<? extends java.lang.annotation.Annotation> scopeAnnotationClass, javax.enterprise.inject.spi.BeanManager beanManager)
scopeAnnotationClass
- The scope annotation (e.g. @RequestScoped.class)beanManager
- The BeanManager
Copyright © 2015 The Apache Software Foundation. All rights reserved.