public class StoreConfigLifecycleListener extends Object implements LifecycleListener
Server
.Modifier and Type | Field and Description |
---|---|
protected Registry |
registry
The configuration information registry for our managed beans.
|
Constructor and Description |
---|
StoreConfigLifecycleListener() |
Modifier and Type | Method and Description |
---|---|
protected void |
createMBean(Server server)
Create StoreConfig MBean and load StoreRegistry MBeans name is
Catalina:type=StoreConfig . |
protected DynamicMBean |
getManagedBean(Object object)
Create a ManagedBean (StoreConfig).
|
IStoreConfig |
getStoreConfig() |
String |
getStoreConfigClass() |
String |
getStoreRegistry() |
void |
lifecycleEvent(LifecycleEvent event)
Register StoreRegistry after Start the complete Server.
|
void |
setStoreConfig(IStoreConfig storeConfig) |
void |
setStoreConfigClass(String storeConfigClass) |
void |
setStoreRegistry(String storeRegistry) |
protected final Registry registry
public void lifecycleEvent(LifecycleEvent event)
lifecycleEvent
in interface LifecycleListener
event
- LifecycleEvent that has occurredLifecycleListener.lifecycleEvent(org.apache.catalina.LifecycleEvent)
protected void createMBean(Server server)
Catalina:type=StoreConfig
.server
- The Server instanceprotected DynamicMBean getManagedBean(Object object) throws Exception
object
- The object to manageException
- if an error occurredpublic IStoreConfig getStoreConfig()
public void setStoreConfig(IStoreConfig storeConfig)
storeConfig
- The storeConfig to set.public String getStoreConfigClass()
public void setStoreConfigClass(String storeConfigClass)
storeConfigClass
- The storeConfigClass to set.public String getStoreRegistry()
public void setStoreRegistry(String storeRegistry)
storeRegistry
- The storeRegistry to set.Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.