Nuxeo Enterprise Platform 5.4

org.nuxeo.connect.update.impl.task
Class PostInstallCommand

java.lang.Object
  extended by org.nuxeo.connect.update.impl.task.AbstractCommand
      extended by 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

Constructor Summary
PostInstallCommand(java.lang.String id)
           
 
Method Summary
 boolean isPostInstall()
          Test if the command must be run at the end in an installation process.
 
Methods inherited from class org.nuxeo.connect.update.impl.task.AbstractCommand
getId, ignore, initialize, readFrom, run, setFail, setIgnore, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.connect.update.impl.task.Command
writeTo
 

Constructor Detail

PostInstallCommand

public PostInstallCommand(java.lang.String id)
Method Detail

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:

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.