com.ibm.commerce.registry

Class RegistryManager

  • java.lang.Object
    • com.ibm.commerce.registry.RegistryManager


  • public class RegistryManager
    extends java.lang.Object
    This class manages all the registered registries.
    • Constructor Summary

      Constructors 
      Constructor and Description
      RegistryManager()
      This is the default constructor for this class.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addRegistry(java.lang.String aRegistryName, Registry aRegistryObj)
      This method adds a registry.
      void deleteRegistry(java.lang.String aRegistryName)
      This method deletes a registry.
      Registry getRegistry(java.lang.String aRegistryName)
      This method gets a registry given by the registry name.
      void initialize()
      This method initializes the registry manager.
      void initializeRegistryEntry(org.w3c.dom.Element node)
      This method initializes a registry entry.
      void initializeRegistryEntry(java.lang.String name, Registry registry)
      This method initializes a registry entry.
      void initializeRegistryEntry(java.lang.String name, java.lang.String className)
      This method initializes a registry entry.
      java.util.Enumeration list()
      This method lists the cache of all the registries maintained by the registry manager.
      void refresh(java.lang.String aRegistryName)
      This method refreshes the cache information of the given registry.
      void refreshAll()
      This method refreshes the caches of all registries.
      static RegistryManager singleton()
      This method returns a singleton object of the registry manager.
      void update(java.lang.String aRegistryName, java.lang.String action, java.lang.String strKey)
      This method updates the cached information of a given registry element.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RegistryManager

        public RegistryManager()
        This is the default constructor for this class. It calls the constructor from the superclass.
    • Method Detail

      • addRegistry

        public void addRegistry(java.lang.String aRegistryName,
                                Registry aRegistryObj)
        This method adds a registry.
        Parameters:
        aRegistryName - The name of the registry.
        aRegistryObj - A Registry object.
      • deleteRegistry

        public void deleteRegistry(java.lang.String aRegistryName)
        This method deletes a registry.
        Parameters:
        aRegistryName - The name of the registry to be deleted.
      • getRegistry

        public Registry getRegistry(java.lang.String aRegistryName)
        This method gets a registry given by the registry name.
        Parameters:
        aRegistryName - A String that represents the name of the registry.
        Returns:
        A Registry object.
      • initialize

        public void initialize()
                        throws java.lang.Exception
        This method initializes the registry manager. The registry manager will initialize all the registries defined in the configuration file.
        Throws:
        java.lang.Exception
      • initializeRegistryEntry

        public void initializeRegistryEntry(java.lang.String name,
                                            Registry registry)
                                     throws java.lang.Exception
        This method initializes a registry entry.
        Parameters:
        name - The name of the registry.
        registry - The Registry object.
        Throws:
        java.lang.Exception
      • initializeRegistryEntry

        public void initializeRegistryEntry(java.lang.String name,
                                            java.lang.String className)
                                     throws java.lang.Exception
        This method initializes a registry entry.
        Parameters:
        name - The name of the registry.
        className - The fully qualified class name of the registry.
        Throws:
        java.lang.Exception
      • initializeRegistryEntry

        public void initializeRegistryEntry(org.w3c.dom.Element node)
                                     throws java.lang.Exception
        This method initializes a registry entry.
        Parameters:
        node - A dom node that defines the registry to be initialized.
        Throws:
        java.lang.Exception
      • list

        public java.util.Enumeration list()
        This method lists the cache of all the registries maintained by the registry manager.
        Returns:
        An Enumeration of all the registry names.
      • refresh

        public void refresh(java.lang.String aRegistryName)
                     throws java.lang.Exception
        This method refreshes the cache information of the given registry.
        Parameters:
        aRegistryName - The name of the registry to be refreshed.
        Throws:
        java.lang.Exception
      • refreshAll

        public void refreshAll()
                        throws java.lang.Exception
        This method refreshes the caches of all registries.
        Throws:
        java.lang.Exception
      • singleton

        public static RegistryManager singleton()
        This method returns a singleton object of the registry manager.
        Returns:
        A RegistryManager singleton object
      • update

        public void update(java.lang.String aRegistryName,
                           java.lang.String action,
                           java.lang.String strKey)
                    throws java.lang.Exception
        This method updates the cached information of a given registry element. This method is only applicable for a registry that implements the ItemUpdate interface.
        Parameters:
        aRegistryName - The name of the registry to be updated.
        action - The action to be performed on the element.
        strKey - A String representation of the cache key.
        Throws:
        java.lang.Exception