public class MvcEnvironment
extends org.springframework.core.enums.StaticLabeledEnum
Modifier and Type | Field and Description |
---|---|
static MvcEnvironment |
PORTLET
Spring Web Portlet MVC.
|
static MvcEnvironment |
SERVLET
Spring Web Servlet MVC.
|
Modifier and Type | Method and Description |
---|---|
static MvcEnvironment |
environmentFor(org.springframework.context.ApplicationContext applicationContext)
Calculates the web environment from the state of the provided application context.
|
getCode, getLabel, shortValue
public static final MvcEnvironment SERVLET
public static final MvcEnvironment PORTLET
public static MvcEnvironment environmentFor(org.springframework.context.ApplicationContext applicationContext)
applicationContext
- the application context