Class StoreConfigLifecycleListener
java.lang.Object
org.apache.catalina.storeconfig.StoreConfigLifecycleListener
- All Implemented Interfaces:
LifecycleListener
Loads and registers a StoreConfig MBean with the name Catalina:type=StoreConfig.
This listener must only be nested within Server elements.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateMBean(Server server) Create StoreConfig MBean and load StoreRegistry MBeans name isCatalina:type=StoreConfig.protected DynamicMBeangetManagedBean(Object object) Create a ManagedBean (StoreConfig).voidlifecycleEvent(LifecycleEvent event) Register StoreRegistry after Start the complete Server.voidsetStoreConfig(IStoreConfig storeConfig) voidsetStoreConfigClass(String storeConfigClass) voidsetStoreRegistry(String storeRegistry)
-
Field Details
-
registry
The configuration information registry for our managed beans.
-
-
Constructor Details
-
StoreConfigLifecycleListener
public StoreConfigLifecycleListener()
-
-
Method Details
-
lifecycleEvent
Register StoreRegistry after Start the complete Server.- Specified by:
lifecycleEventin interfaceLifecycleListener- Parameters:
event- LifecycleEvent that has occurred- See Also:
-
createMBean
Create StoreConfig MBean and load StoreRegistry MBeans name isCatalina:type=StoreConfig.- Parameters:
server- The Server instance
-
getManagedBean
Create a ManagedBean (StoreConfig).- Parameters:
object- The object to manage- Returns:
- an MBean wrapping the object
- Throws:
Exception- if an error occurred
-
getStoreConfig
- Returns:
- the store config instance
-
setStoreConfig
- Parameters:
storeConfig- The storeConfig to set.
-
getStoreConfigClass
- Returns:
- the main store config class name
-
setStoreConfigClass
- Parameters:
storeConfigClass- The storeConfigClass to set.
-
getStoreRegistry
- Returns:
- the store registry
-
setStoreRegistry
- Parameters:
storeRegistry- The storeRegistry to set.
-