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 classConfigurationDeployer.Entry
-
Field Summary
Fields Modifier and Type Field Description protected ListenerListlistenersprotected FileChangeNotifiernotifierprotected 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)voidaddConfigurationChangedListener(ConfigurationChangedListener listener)voiddeploy(RuntimeContext ctx, File file, boolean trackChanges)voiddeploy(RuntimeContext ctx, URL url, boolean trackChanges)voidfileChanged(FileChangeNotifier.FileEntry entry, long now)Notifies that the given file changed.voidfireConfigurationChanged(ConfigurationDeployer.Entry entry)voidremoveConfigurationChangedListener(ConfigurationChangedListener listener)voidundeploy(File file)voidundeploy(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:FileChangeListenerNotifies that the given file changed.- Specified by:
fileChangedin interfaceFileChangeListenernow- 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)
-
-