com.ibm.commerce.beans

Class 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 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 interface SmartDataBean
        Overrides:
        populate in class SmartDataBeanImpl
        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 the WcsApp cache.
        Parameters:
        name - This is the name of the object to cache.
        obj - This is the object to cache.