public class ConfigurationDeployer extends Object implements FileChangeListener
Modifier and Type | Class and Description |
---|---|
static class |
ConfigurationDeployer.Entry |
Modifier and Type | Field and Description |
---|---|
protected ListenerList |
listeners |
protected FileChangeNotifier |
notifier |
protected Map<String,ConfigurationDeployer.Entry> |
urls |
Constructor and Description |
---|
ConfigurationDeployer() |
ConfigurationDeployer(FileChangeNotifier notifier) |
Modifier and Type | Method and Description |
---|---|
protected void |
_deploy(RuntimeContext ctx,
URL url,
File watchFile,
boolean trackChanges) |
void |
_undeploy(ConfigurationDeployer.Entry entry) |
void |
addConfigurationChangedListener(ConfigurationChangedListener listener) |
void |
deploy(RuntimeContext ctx,
File file,
boolean trackChanges) |
void |
deploy(RuntimeContext ctx,
URL url,
boolean trackChanges) |
void |
fileChanged(FileChangeNotifier.FileEntry entry,
long now)
Notifies that the given file changed.
|
void |
fireConfigurationChanged(ConfigurationDeployer.Entry entry) |
void |
removeConfigurationChangedListener(ConfigurationChangedListener listener) |
void |
undeploy(File file) |
void |
undeploy(URL url) |
protected final Map<String,ConfigurationDeployer.Entry> urls
protected final FileChangeNotifier notifier
protected final ListenerList listeners
public ConfigurationDeployer()
public ConfigurationDeployer(FileChangeNotifier notifier)
public void deploy(RuntimeContext ctx, URL url, boolean trackChanges) throws IOException
IOException
public void undeploy(URL url) throws IOException
IOException
public void _undeploy(ConfigurationDeployer.Entry entry) throws IOException
IOException
public void deploy(RuntimeContext ctx, File file, boolean trackChanges) throws IOException
IOException
public void undeploy(File file) throws IOException
IOException
protected void _deploy(RuntimeContext ctx, URL url, File watchFile, boolean trackChanges) throws IOException
IOException
public void fileChanged(FileChangeNotifier.FileEntry entry, long now)
FileChangeListener
fileChanged
in interface FileChangeListener
now
- the time stamp when the change was detected. This value can be used as a notification ID by listeners
to avoid multiple processing for notification that will send multiple eventspublic void addConfigurationChangedListener(ConfigurationChangedListener listener)
public void removeConfigurationChangedListener(ConfigurationChangedListener listener)
public void fireConfigurationChanged(ConfigurationDeployer.Entry entry)
Copyright © 2019 Nuxeo. All rights reserved.