public class RemigrationLifecycleItem extends Object implements com.atlassian.config.lifecycle.LifecycleItem
Also enabled the migrationRequiredListener to listen for new plugin enabled events now that confluence has started up.
Modifier and Type | Field and Description |
---|---|
protected static String |
STARTUP_REMIGRATION_DISABLED |
Constructor and Description |
---|
RemigrationLifecycleItem() |
Modifier and Type | Method and Description |
---|---|
void |
setEventPublisher(com.atlassian.event.api.EventPublisher publisher) |
void |
setMacroMigrationService(MacroMigrationService migrationService) |
void |
setMigrationRequiredListener(MigrationRequiredListener listener) |
void |
shutdown(com.atlassian.config.lifecycle.LifecycleContext context) |
void |
startup(com.atlassian.config.lifecycle.LifecycleContext context)
registers the migration required listener to listen for any plugin enabled events that happen after
startup, also runs the remigration if necessary.
|
protected static final String STARTUP_REMIGRATION_DISABLED
public void startup(com.atlassian.config.lifecycle.LifecycleContext context) throws Exception
startup
in interface com.atlassian.config.lifecycle.LifecycleItem
Exception
public void shutdown(com.atlassian.config.lifecycle.LifecycleContext context) throws Exception
shutdown
in interface com.atlassian.config.lifecycle.LifecycleItem
Exception
public void setMigrationRequiredListener(MigrationRequiredListener listener)
public void setMacroMigrationService(MacroMigrationService migrationService)
public void setEventPublisher(com.atlassian.event.api.EventPublisher publisher)
Copyright © 2003–2019 Atlassian. All rights reserved.