public class ManagedReloadingStrategy extends Object implements ReloadingStrategy, ManagedReloadingStrategyMBean
Constructor and Description |
---|
ManagedReloadingStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
init()
Initialize the strategy.
|
void |
refresh()
Tells this strategy that the monitored configuration file should be
refreshed.
|
void |
reloadingPerformed()
Notify the strategy that the file has been reloaded.
|
boolean |
reloadingRequired()
Checks whether reloading is required.
|
void |
setConfiguration(FileConfiguration configuration)
Sets the associated configuration.
|
public void init()
ReloadingStrategy
init
in interface ReloadingStrategy
ReloadingStrategy.init()
public void reloadingPerformed()
ReloadingStrategy
reloadingPerformed
in interface ReloadingStrategy
ReloadingStrategy.reloadingPerformed()
public boolean reloadingRequired()
refresh()
method has been invoked.reloadingRequired
in interface ReloadingStrategy
ReloadingStrategy.reloadingRequired()
public void setConfiguration(FileConfiguration configuration)
setConfiguration
in interface ReloadingStrategy
configuration
- the associated configurationpublic void refresh()
refresh
in interface ManagedReloadingStrategyMBean
ManagedReloadingStrategyMBean.refresh()
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.