org.nuxeo.connect.update.impl.task
Class PostInstallCommand
java.lang.Object
org.nuxeo.connect.update.impl.task.AbstractCommand
org.nuxeo.connect.update.impl.task.PostInstallCommand
- All Implemented Interfaces:
- Command
- Direct Known Subclasses:
- Flush, FlushCoreCache, FlushJaasCache, ReloadProperties
public abstract class PostInstallCommand
- extends AbstractCommand
Base class for flush like commands.
- Author:
- Bogdan Stefanescu
Method Summary |
boolean |
isPostInstall()
Test if the command must be run at the end in an installation process. |
Methods inherited from interface org.nuxeo.connect.update.impl.task.Command |
writeTo |
isPostInstall
public boolean isPostInstall()
- Description copied from interface:
Command
- Test if the command must be run at the end in an installation process.
This is useful for flush like commands that reset application cache.
These commands musty be executed at the install/uninstall end. By default
the uninstall log is generated by using the inverse of the installation
commands executed in the inverse order. This is not good for flush like
commands that should always be executed at the end.
For example if you have a copy and a flush command in the install.xml the
generated uninstall.xml will have a flush and a delete command - but he
order is not good since flush should be done at the end. By marking your
command as post-install it will be put
To implement a post-install command simply override
PostInstallCommand
.
- Specified by:
isPostInstall
in interface Command
- Overrides:
isPostInstall
in class AbstractCommand
- Returns:
Copyright © 2011 Nuxeo SAS. All Rights Reserved.