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 Exception
Exception
public void _undeploy(ConfigurationDeployer.Entry entry) throws Exception
Exception
public void deploy(RuntimeContext ctx, File file, boolean trackChanges) throws Exception
Exception
public void fileChanged(FileChangeNotifier.FileEntry entry, long now) throws Exception
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 eventsException
public void addConfigurationChangedListener(ConfigurationChangedListener listener)
public void removeConfigurationChangedListener(ConfigurationChangedListener listener)
public void fireConfigurationChanged(ConfigurationDeployer.Entry entry) throws Exception
Exception
Copyright © 2013 Nuxeo SA. All Rights Reserved.