Package org.nuxeo.runtime.deploy
Class ConfigurationDeployer
- java.lang.Object
-
- org.nuxeo.runtime.deploy.ConfigurationDeployer
-
- All Implemented Interfaces:
FileChangeListener
public class ConfigurationDeployer extends Object implements FileChangeListener
- Author:
- Bogdan Stefanescu
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ConfigurationDeployer.Entry
-
Field Summary
Fields Modifier and Type Field Description protected ListenerList
listeners
protected FileChangeNotifier
notifier
protected Map<String,ConfigurationDeployer.Entry>
urls
-
Constructor Summary
Constructors Constructor Description ConfigurationDeployer()
ConfigurationDeployer(FileChangeNotifier notifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
urls
protected final Map<String,ConfigurationDeployer.Entry> urls
-
notifier
protected final FileChangeNotifier notifier
-
listeners
protected final ListenerList listeners
-
-
Constructor Detail
-
ConfigurationDeployer
public ConfigurationDeployer()
-
ConfigurationDeployer
public ConfigurationDeployer(FileChangeNotifier notifier)
-
-
Method Detail
-
deploy
public void deploy(RuntimeContext ctx, URL url, boolean trackChanges) throws IOException
- Throws:
IOException
-
undeploy
public void undeploy(URL url) throws IOException
- Throws:
IOException
-
_undeploy
public void _undeploy(ConfigurationDeployer.Entry entry) throws IOException
- Throws:
IOException
-
deploy
public void deploy(RuntimeContext ctx, File file, boolean trackChanges) throws IOException
- Throws:
IOException
-
undeploy
public void undeploy(File file) throws IOException
- Throws:
IOException
-
_deploy
protected void _deploy(RuntimeContext ctx, URL url, File watchFile, boolean trackChanges) throws IOException
- Throws:
IOException
-
fileChanged
public void fileChanged(FileChangeNotifier.FileEntry entry, long now)
Description copied from interface:FileChangeListener
Notifies that the given file changed.- Specified by:
fileChanged
in interfaceFileChangeListener
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 events
-
addConfigurationChangedListener
public void addConfigurationChangedListener(ConfigurationChangedListener listener)
-
removeConfigurationChangedListener
public void removeConfigurationChangedListener(ConfigurationChangedListener listener)
-
fireConfigurationChanged
public void fireConfigurationChanged(ConfigurationDeployer.Entry entry)
-
-