com.softslate.commerce.customer.order
Class OrderInitializer

java.lang.Object
  extended bycom.softslate.commerce.customer.order.OrderInitializer

public class OrderInitializer
extends java.lang.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 Summary
(package private) static org.apache.commons.logging.Log log
           
private  org.apache.struts.action.ActionServlet servlet
           
 
Constructor Summary
OrderInitializer()
           
 
Method Summary
 org.apache.struts.action.ActionServlet getServlet()
           
 void initializeStatesAndCountries(BusinessObjectFactory businessObjectFactory)
          Loads the active states and countries for the store into the application scope.
 void setServlet(org.apache.struts.action.ActionServlet servlet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

static org.apache.commons.logging.Log log

servlet

private org.apache.struts.action.ActionServlet servlet
Constructor Detail

OrderInitializer

public OrderInitializer()
Method Detail

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.



Copyright © SoftSlate, Inc. 2003–2005