Description
public boolean isContextActive(Class<? extends Annotation> scopeAnnotationClass)
{
try
{
BeanManager beanManager = BeanManagerProvider.getInstance().getBeanManager();
if (beanManager.getContext(scopeAnnotationClass) == null || !beanManager.getContext(scopeAnnotationClass).isActive())
{ return false; } }
catch (ContextNotActiveException cnae)
return true;
}
Any idea where i could add this method?