MigrationService
CheckFileStatus
public abstract class OneTimeMigrationService extends java.lang.Object implements MigrationService
Concrete implementations of this class should register themselves in services.xml. jEdit will call doMigration() on each object, which will skip the ones that have been done before.
The time that these services are automatically executed by jEdit is during the "initializing properties" step. This means that implementations that need to update or remove certain properties during upgrades can take advantage of this class.
Example:
<SERVICE CLASS="org.jedit.migration.OneTimeMigrationService" NAME="checkFileStatus" > new org.jedit.migration.CheckFileStatus(); </SERVICE>
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.String |
name |
Constructor | Description |
---|---|
OneTimeMigrationService(java.lang.String name) |
Modifier and Type | Method | Description |
---|---|---|
void |
doMigration() |
Calls migrate() but only once per installation.
|
static void |
execute() |
Performs doMigrate() on each installed
OneTimeMigrationService
|
migrate