Package com.jk.web.mvc
Class MvcUserBinding
java.lang.Object
com.jk.web.mvc.MvcUserBinding
This class represents a binding between an MVC page and its associated model
object for a specific user session.
- Version:
- 1.0
- Author:
- Dr. Jalal H. Kiswani
-
Constructor Summary
ConstructorsConstructorDescriptionMvcUserBinding
(MvcPageModelBinding binding, Object modelInstance) This method constructs a newMvcUserBinding
with a given page-model binding and model instance. -
Method Summary
Modifier and TypeMethodDescriptionThis method retrieves the page-model binding associated with this user binding.This method retrieves the instance of the model object associated with the user's session.void
setBinding
(MvcPageModelBinding binding) This method sets the page-model binding associated with this user binding to the provided value.void
setModelObject
(Object modelObject) This method sets the instance of the model object associated with the user's session to the provided value.
-
Constructor Details
-
MvcUserBinding
This method constructs a newMvcUserBinding
with a given page-model binding and model instance.- Parameters:
binding
- Specifies the binding between the MVC page and its model.modelInstance
- Specifies the instance of the model object.
-
-
Method Details
-
getBinding
This method retrieves the page-model binding associated with this user binding.- Returns:
- the page-model binding associated with this user binding.
-
setBinding
This method sets the page-model binding associated with this user binding to the provided value.- Parameters:
binding
- Specifies the new page-model binding associated with this user binding.
-
getModelObject
This method retrieves the instance of the model object associated with the user's session.- Returns:
- the instance of the model object associated with the user's session.
-
setModelObject
This method sets the instance of the model object associated with the user's session to the provided value.- Parameters:
modelObject
- Specifies the new instance of the model object associated with the user's session.
-