Package org.apache.catalina.storeconfig
Class StoreConfigLifecycleListener
- java.lang.Object
- 
- org.apache.catalina.storeconfig.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 Serverelements.
- 
- 
Constructor SummaryConstructors Constructor Description StoreConfigLifecycleListener()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateMBean(Server server)Create StoreConfig MBean and load StoreRegistry MBeans name isCatalina:type=StoreConfig.protected javax.management.DynamicMBeangetManagedBean(java.lang.Object object)Create a ManagedBean (StoreConfig).IStoreConfiggetStoreConfig()java.lang.StringgetStoreConfigClass()java.lang.StringgetStoreRegistry()voidlifecycleEvent(LifecycleEvent event)Register StoreRegistry after Start the complete Server.voidsetStoreConfig(IStoreConfig storeConfig)voidsetStoreConfigClass(java.lang.String storeConfigClass)voidsetStoreRegistry(java.lang.String storeRegistry)
 
- 
- 
- 
Field Detail- 
registryprotected final Registry registry The configuration information registry for our managed beans.
 
- 
 - 
Method Detail- 
lifecycleEventpublic void lifecycleEvent(LifecycleEvent event) Register StoreRegistry after Start the complete Server.- Specified by:
- lifecycleEventin interface- LifecycleListener
- Parameters:
- event- LifecycleEvent that has occurred
- See Also:
- LifecycleListener.lifecycleEvent(org.apache.catalina.LifecycleEvent)
 
 - 
createMBeanprotected void createMBean(Server server) Create StoreConfig MBean and load StoreRegistry MBeans name isCatalina:type=StoreConfig.- Parameters:
- server- The Server instance
 
 - 
getManagedBeanprotected javax.management.DynamicMBean getManagedBean(java.lang.Object object) throws java.lang.ExceptionCreate a ManagedBean (StoreConfig).- Parameters:
- object- The object to manage
- Returns:
- an MBean wrapping the object
- Throws:
- java.lang.Exception- if an error occurred
 
 - 
getStoreConfigpublic IStoreConfig getStoreConfig() - Returns:
- the store config instance
 
 - 
setStoreConfigpublic void setStoreConfig(IStoreConfig storeConfig) - Parameters:
- storeConfig- The storeConfig to set.
 
 - 
getStoreConfigClasspublic java.lang.String getStoreConfigClass() - Returns:
- the main store config class name
 
 - 
setStoreConfigClasspublic void setStoreConfigClass(java.lang.String storeConfigClass) - Parameters:
- storeConfigClass- The storeConfigClass to set.
 
 - 
getStoreRegistrypublic java.lang.String getStoreRegistry() - Returns:
- the store registry
 
 - 
setStoreRegistrypublic void setStoreRegistry(java.lang.String storeRegistry) - Parameters:
- storeRegistry- The storeRegistry to set.
 
 
- 
 
-