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
ConstructorsConstructorDescriptionConstructs a new StoreConfigLifecycleListener with default settings. -
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).Returns the store config instance.Returns the fully qualified class name of the StoreConfig implementation.Returns the name of the StoreRegistry MBean.voidlifecycleEvent(LifecycleEvent event) Register StoreRegistry after Start the complete Server.voidsetStoreConfig(IStoreConfig storeConfig) Sets the store config instance.voidsetStoreConfigClass(String storeConfigClass) Sets the fully qualified class name of the StoreConfig implementation.voidsetStoreRegistry(String storeRegistry) Sets the name of the StoreRegistry MBean.
-
Field Details
-
registry
The configuration information registry for our managed beans.
-
-
Constructor Details
-
StoreConfigLifecycleListener
public StoreConfigLifecycleListener()Constructs a new StoreConfigLifecycleListener with default settings.
-
-
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.- Returns:
- the store config instance
-
setStoreConfig
Sets the store config instance.- Parameters:
storeConfig- The storeConfig to set.
-
getStoreConfigClass
Returns the fully qualified class name of the StoreConfig implementation.- Returns:
- the main store config class name
-
setStoreConfigClass
Sets the fully qualified class name of the StoreConfig implementation.- Parameters:
storeConfigClass- The storeConfigClass to set.
-
getStoreRegistry
Returns the name of the StoreRegistry MBean.- Returns:
- the store registry
-
setStoreRegistry
Sets the name of the StoreRegistry MBean.- Parameters:
storeRegistry- The storeRegistry to set.
-