com.ibm.commerce.beans
Class WcsAppDataBean
- java.lang.Object
-
- com.ibm.commerce.beans.InputDataBeanImpl
-
- com.ibm.commerce.beans.SmartDataBeanImpl
-
- com.ibm.commerce.beans.WcsAppDataBean
-
- All Implemented Interfaces:
- DataBean, InputDataBean, SmartDataBean, java.io.Serializable
public class WcsAppDataBean extends SmartDataBeanImpl
This class defines a data bean that allows a JSP page to register/cache and access instance variables. The instance variables are associated with this instance of a WebSphere Commerce Server application.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
IBM Copyright notice field.-
Fields inherited from interface com.ibm.commerce.beans.DataBean
emptyString
-
-
Constructor Summary
Constructors Constructor and Description WcsAppDataBean()
This is the default constructor for this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Object
getCachedObject(java.lang.String name)
This method gets a cached object with the given name.com.ibm.commerce.server.ConfigProperties
getConfigProperties()
This method gets the configuration properties.java.lang.String
getInstanceName()
This method gets the instance name / clone name.RegistryManager
getRegistryManager()
This method gets the registry manager for this application.StoreRegistry
getStoreRegistry()
This method gets the store registry for this application.java.lang.String
getWebPath()
This method gets the store web path associated with this web application.void
populate()
This method does not do anything because the objects are already cached somewhere and the corresponding getter knows where to get them.void
setCachedObject(java.lang.String name, java.lang.Object obj)
This method registers an object with theWcsApp
cache.-
Methods inherited from class com.ibm.commerce.beans.SmartDataBeanImpl
fulfills, getCommandContext, getHttpRequest, getHttpResponse, getResources, getViewCommandContext, setCommandContext, setHttpRequest, setHttpResponse, setViewCommandContext
-
Methods inherited from class com.ibm.commerce.beans.InputDataBeanImpl
getRequestProperties, setRequestProperties
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.commerce.beans.InputDataBean
getRequestProperties, setRequestProperties
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM Copyright notice field.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WcsAppDataBean
public WcsAppDataBean()
This is the default constructor for this class. It calls the constructor from the superclass.
-
-
Method Detail
-
getCachedObject
public java.lang.Object getCachedObject(java.lang.String name)
This method gets a cached object with the given name.- Parameters:
name
- This is the name of cached object.- Returns:
- This method returns the cached object (or null if the object is not cached).
-
getConfigProperties
public com.ibm.commerce.server.ConfigProperties getConfigProperties()
This method gets the configuration properties.- Returns:
- This method returns the configuration properties.
-
getInstanceName
public java.lang.String getInstanceName()
This method gets the instance name / clone name.- Returns:
- This method returns the WebSphere Commerce Server instance name.
-
getRegistryManager
public RegistryManager getRegistryManager()
This method gets the registry manager for this application.- Returns:
- This method returns the registry manager.
-
getStoreRegistry
public StoreRegistry getStoreRegistry()
This method gets the store registry for this application.- Returns:
- This method returns the store registry.
-
getWebPath
public java.lang.String getWebPath()
This method gets the store web path associated with this web application.- Returns:
- This method returns the store web path.
-
populate
public void populate() throws java.lang.Exception
This method does not do anything because the objects are already cached somewhere and the corresponding getter knows where to get them.- Specified by:
populate
in interfaceSmartDataBean
- Overrides:
populate
in classSmartDataBeanImpl
- Throws:
java.lang.Exception
- This should never be thrown.
-
setCachedObject
public void setCachedObject(java.lang.String name, java.lang.Object obj)
This method registers an object with theWcsApp
cache.- Parameters:
name
- This is the name of the object to cache.obj
- This is the object to cache.
-
-