com.softslate.commerce.customer.product
Class ProductInitializer

java.lang.Object
  extended bycom.softslate.commerce.customer.product.ProductInitializer

public class ProductInitializer
extends java.lang.Object

Initializes singleton objects related to products 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
ProductInitializer()
           
 
Method Summary
 org.apache.struts.action.ActionServlet getServlet()
           
 void initializeBuiltInCategories(BusinessObjectFactory businessObjectFactory)
          Creates a Collection of each of the built-in categories in the system.
 void initializeCategoryTree(BusinessObjectFactory businessObjectFactory)
          Creates a Collection representing the tree of categories in the system.
 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

ProductInitializer

public ProductInitializer()
Method Detail

getServlet

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

setServlet

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

initializeCategoryTree

public void initializeCategoryTree(BusinessObjectFactory businessObjectFactory)
Creates a Collection representing the tree of categories in the system. Places the Collection the application scope as an attribute with the name "categoryTree". Invokes ProductProcessor.loadCategoryTree() to load the category information from the database.


initializeBuiltInCategories

public void initializeBuiltInCategories(BusinessObjectFactory businessObjectFactory)
Creates a Collection of each of the built-in categories in the system. Places the Collection the application scope as an attribute with the name "builtInCategories". Invokes ProductProcessor.loadBuiltInCategories() to load the category information from the database.



Copyright © SoftSlate, Inc. 2003–2005