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
IOExceptionpublic void undeploy(URL url) throws IOException
IOExceptionpublic void _undeploy(ConfigurationDeployer.Entry entry) throws IOException
IOExceptionpublic void deploy(RuntimeContext ctx, File file, boolean trackChanges) throws IOException
IOExceptionpublic void undeploy(File file) throws IOException
IOExceptionprotected void _deploy(RuntimeContext ctx, URL url, File watchFile, boolean trackChanges) throws IOException
IOExceptionpublic void fileChanged(FileChangeNotifier.FileEntry entry, long now)
FileChangeListenerfileChanged in interface FileChangeListenernow - 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 © 2018 Nuxeo. All rights reserved.