Class StoreConfigLifecycleListener

  • All Implemented Interfaces:
    LifecycleListener

    public class StoreConfigLifecycleListener
    extends java.lang.Object
    implements LifecycleListener
    Loads and registers a StoreConfig MBean with the name Catalina:type=StoreConfig.

    This listener must only be nested within Server elements.

    • Field Detail

      • registry

        protected final Registry registry
        The configuration information registry for our managed beans.
    • Constructor Detail

      • StoreConfigLifecycleListener

        public StoreConfigLifecycleListener()
    • Method Detail

      • createMBean

        protected void createMBean​(Server server)
        Create StoreConfig MBean and load StoreRegistry MBeans name is Catalina:type=StoreConfig.
        Parameters:
        server - The Server instance
      • getManagedBean

        protected javax.management.DynamicMBean getManagedBean​(java.lang.Object object)
                                                        throws java.lang.Exception
        Create a ManagedBean (StoreConfig).
        Parameters:
        object - The object to manage
        Returns:
        an MBean wrapping the object
        Throws:
        java.lang.Exception - if an error occurred
      • getStoreConfig

        public IStoreConfig getStoreConfig()
        Returns:
        the store config instance
      • setStoreConfig

        public void setStoreConfig​(IStoreConfig storeConfig)
        Parameters:
        storeConfig - The storeConfig to set.
      • getStoreConfigClass

        public java.lang.String getStoreConfigClass()
        Returns:
        the main store config class name
      • setStoreConfigClass

        public void setStoreConfigClass​(java.lang.String storeConfigClass)
        Parameters:
        storeConfigClass - The storeConfigClass to set.
      • getStoreRegistry

        public java.lang.String getStoreRegistry()
        Returns:
        the store registry
      • setStoreRegistry

        public void setStoreRegistry​(java.lang.String storeRegistry)
        Parameters:
        storeRegistry - The storeRegistry to set.