public enum MvcEnvironment extends java.lang.Enum<MvcEnvironment>
| Enum Constant and Description |
|---|
PORTLET
Spring Web Portlet MVC.
|
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.
|
static MvcEnvironment |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MvcEnvironment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MvcEnvironment SERVLET
public static final MvcEnvironment PORTLET
public static MvcEnvironment[] values()
for (MvcEnvironment c : MvcEnvironment.values()) System.out.println(c);
public static MvcEnvironment valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic static MvcEnvironment environmentFor(org.springframework.context.ApplicationContext applicationContext)
applicationContext - the application context