Class OrderInitializer
java.lang.Object
com.softslate.commerce.customer.order.OrderInitializer
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.struts.action.ActionServlet
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)
-
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
Loads the active states and countries for the store into the application scope. Places an instance ofStatesAndCountries
in the application scope as an attribute with the name "statesAndCountries". InvokesOrderProcessor.loadStatesAndCountries()
to load the information from the database.
-