[ 
http://jira.magnolia-cms.com/browse/MAGNOLIA-2535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gregory Joseph resolved MAGNOLIA-2535.
--------------------------------------

    Resolution: Fixed

> Introduce MgnlContext.getWebContext()
> -------------------------------------
>
>                 Key: MAGNOLIA-2535
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2535
>             Project: Magnolia
>          Issue Type: New Feature
>          Components: core
>            Reporter: Gregory Joseph
>            Assignee: Gregory Joseph
>             Fix For: 4.0
>
>
> There is a lot of code that does
> {code}
> final Context mgnlCtx = MgnlContext.getInstance();
> if (mgnlCtx instanceof WebContext)
> {code}
> A new {{getWebContextOrNull()}} would help - maybe along a 
> {{getWebContext()}} method, which would throw an IllegalStateException, much 
> like {{getInstance()}} does.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to