org.springframework.webflow.mvc.builder
Class MvcEnvironment

java.lang.Object
  extended by org.springframework.core.enums.AbstractLabeledEnum
      extended by org.springframework.core.enums.StaticLabeledEnum
          extended by org.springframework.webflow.mvc.builder.MvcEnvironment
All Implemented Interfaces:
java.io.Serializable, java.lang.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

Field Summary
static MvcEnvironment PORTLET
          Spring Web Portlet MVC.
static MvcEnvironment SERVLET
          Spring Web Servlet MVC.
 
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, readResolve, shortValue
 
Methods inherited from class org.springframework.core.enums.AbstractLabeledEnum
compareTo, equals, getType, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SERVLET

public static final MvcEnvironment SERVLET
Spring Web Servlet MVC.


PORTLET

public static final MvcEnvironment PORTLET
Spring Web Portlet MVC.

Method Detail

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