[MAGNOLIA-2535] Introduce MgnlContext.getWebContext() Created: 02/Jan/09 Updated: 23/Jan/13 Resolved: 23/Jan/09 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | core |
| Affects Version/s: | None |
| Fix Version/s: | 4.0 |
| Type: | New Feature | Priority: | Major |
| Reporter: | Magnolia International | Assignee: | Magnolia International |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Description |
|
There is a lot of code that does final Context mgnlCtx = MgnlContext.getInstance(); if (mgnlCtx instanceof WebContext) A new getWebContextOrNull() would help - maybe along a getWebContext() method, which would throw an IllegalStateException, much like getInstance() does. |
| Comments |
| Comment by Magnolia International [ 02/Jan/09 ] |
|
Done and committed - please review |