public class ConfigurationDeployer extends Object implements FileChangeListener
Modifier and Type | Class and Description |
---|---|
static class |
ConfigurationDeployer.Entry |
Constructor and Description |
---|
ConfigurationDeployer() |
ConfigurationDeployer(FileChangeNotifier notifier) |
Modifier and Type | Method and Description |
---|---|
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) |
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
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 © 2015 Nuxeo SA. All rights reserved.