Package com.jk.web.mvc
Enum Class MvcScope
- All Implemented Interfaces:
Serializable
,Comparable<MvcScope>
,Constable
This enum represents different scopes for Model-View-Controller (MVC) models.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents the application scope, where the model instance is available for the entire application's life-cycle.Represents the request scope, where the model instance is available for the duration of a single HTTP request.Represents the session scope, where the model instance is available for the duration of a user session.Represents the view scope, where the model instance is available for the duration of a view rendering. -
Method Summary
-
Enum Constant Details
-
REQUEST
Represents the request scope, where the model instance is available for the duration of a single HTTP request. -
VIEW
Represents the view scope, where the model instance is available for the duration of a view rendering. -
SESSION
Represents the session scope, where the model instance is available for the duration of a user session. -
APPLICATIONS
Represents the application scope, where the model instance is available for the entire application's life-cycle.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-