[
https://issues.apache.org/jira/browse/DELTASPIKE-703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14114193#comment-14114193
]
Thomas Andraschko commented on DELTASPIKE-703:
----------------------------------------------
For both cases.
I would like to do something like this:
if (!ctrl.isContextActive(RequestScoped.class))
{
ctrl.startContext(RequestScoped.class);
}
But i forgot that there is already a short way to check if the context is
active -> beanManager.getContext(RequestScoped.class).isActive()
so it would just a little bit shorter
i will close it.
> Add #isScopeActive to ContextControl
> ------------------------------------
>
> Key: DELTASPIKE-703
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-703
> Project: DeltaSpike
> Issue Type: New Feature
> Components: CdiControl
> Reporter: Thomas Andraschko
> Priority: Minor
>
> to allwow e.g.
> ctr.isScopeActive(SessionScoped.class);
--
This message was sent by Atlassian JIRA
(v6.2#6252)