org.springframework.webflow.mvc.builder
Class MvcEnvironment
java.lang.Object
org.springframework.core.enums.AbstractLabeledEnum
org.springframework.core.enums.StaticLabeledEnum
org.springframework.webflow.mvc.builder.MvcEnvironment
- All Implemented Interfaces:
- Serializable, Comparable, org.springframework.core.enums.LabeledEnum
public class MvcEnvironment
- extends org.springframework.core.enums.StaticLabeledEnum
Supported Spring Web MVC environments.
- Author:
- Keith Donald
- See Also:
- Serialized Form
Fields inherited from interface org.springframework.core.enums.LabeledEnum |
CODE_ORDER, DEFAULT_ORDER, LABEL_ORDER |
Method Summary |
static MvcEnvironment |
environmentFor(org.springframework.context.ApplicationContext applicationContext)
Calculates the web environment from the state of the provided application context. |
Methods inherited from class org.springframework.core.enums.StaticLabeledEnum |
getCode, getLabel, shortValue |
Methods inherited from class org.springframework.core.enums.AbstractLabeledEnum |
compareTo, equals, getType, hashCode, toString |
SERVLET
public static final MvcEnvironment SERVLET
- Spring Web Servlet MVC.
PORTLET
public static final MvcEnvironment PORTLET
- Spring Web Portlet MVC.
environmentFor
public static MvcEnvironment environmentFor(org.springframework.context.ApplicationContext applicationContext)
- Calculates the web environment from the state of the provided application context.
- Parameters:
applicationContext
- the application context
- Returns:
- the web environment the context is running in, or null if not running in a web environment