Package org.apache.catalina.storeconfig
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
createMBean
(Server server) Create StoreConfig MBean and load StoreRegistry MBeans name isCatalina:type=StoreConfig
.protected DynamicMBean
getManagedBean
(Object object) Create a ManagedBean (StoreConfig).void
lifecycleEvent
(LifecycleEvent event) Register StoreRegistry after Start the complete Server.void
setStoreConfig
(IStoreConfig storeConfig) void
setStoreConfigClass
(String storeConfigClass) void
setStoreRegistry
(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:
lifecycleEvent
in 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.
-