Class OrderInitializer

java.lang.Object
com.softslate.commerce.customer.order.OrderInitializer

public class OrderInitializer extends Object
Initializes singleton objects related to orders in the application scope. Called by BaseRequestProcessor at the beginning of a request, if the singletons are found to be missing.
Author:
David Tobey
  • Field Details

    • log

      static org.apache.commons.logging.Log log
    • servlet

      private org.apache.struts.action.ActionServlet servlet
  • Constructor Details

    • OrderInitializer

      public OrderInitializer()
    • OrderInitializer

      public OrderInitializer(org.apache.struts.action.ActionServlet servlet)
  • Method Details

    • getServlet

      public org.apache.struts.action.ActionServlet getServlet()
    • setServlet

      public void setServlet(org.apache.struts.action.ActionServlet servlet)
    • initializeStatesAndCountries

      public void initializeStatesAndCountries(BusinessObjectFactory businessObjectFactory)
      Loads the active states and countries for the store into the application scope. Places an instance of StatesAndCountries in the application scope as an attribute with the name "statesAndCountries". Invokes OrderProcessor.loadStatesAndCountries() to load the information from the database.