Class MvcUserBinding

java.lang.Object
com.jk.web.mvc.MvcUserBinding

public class MvcUserBinding extends Object
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 Details

    • MvcUserBinding

      public MvcUserBinding(MvcPageModelBinding binding, Object modelInstance)
      This method constructs a new MvcUserBinding 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

      public MvcPageModelBinding getBinding()
      This method retrieves the page-model binding associated with this user binding.
      Returns:
      the page-model binding associated with this user binding.
    • setBinding

      public void setBinding(MvcPageModelBinding binding)
      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

      public Object 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

      public void setModelObject(Object modelObject)
      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.