public class MigrationHandlerModuleDescriptor extends BaseWeightedModuleDescriptor<Void>
Exporter
and Importer
implementations.
Usage:
<migration-handler key="customExporter" weight="120">
<exporter class="com.example.bitbucket.internal.migration.DefaultCoreExporter" />
<importer class="com.example.bitbucket.internal.migration.DefaultCoreImporter" />
</migration>
The (optional) weight
attribute defines the order in which Exporter
and Importer
implementations will be called. Lower weights are called earlier and the default weight is 100.
Third party plugins must use a weight of 100 or higher
key
attribute on <migration>
and the class
attribute on <exporter>
and <importer>
are required.Modifier and Type | Field and Description |
---|---|
static String |
XML_ELEMENT_NAME |
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources
COMPARABLE
Constructor and Description |
---|
MigrationHandlerModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory) |
Modifier and Type | Method and Description |
---|---|
void |
disabled() |
Exporter |
getExporter() |
Optional<Importer> |
getImporter() |
Void |
getModule() |
void |
init(com.atlassian.plugin.Plugin plugin,
org.dom4j.Element element) |
compareTo, getWeight
assertModuleClassImplements, checkPermissions, destroy, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, provideValidationRules, satisfiesMinJavaVersion, setBroken, setPlugin, toString, validate
public static final String XML_ELEMENT_NAME
public MigrationHandlerModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
public void disabled()
disabled
in interface com.atlassian.plugin.StateAware
disabled
in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<Void>
public Void getModule()
public void init(@Nonnull com.atlassian.plugin.Plugin plugin, @Nonnull org.dom4j.Element element) throws com.atlassian.plugin.PluginParseException
init
in interface com.atlassian.plugin.ModuleDescriptor<Void>
init
in class BaseWeightedModuleDescriptor<Void>
com.atlassian.plugin.PluginParseException
Copyright © 2024 Atlassian. All rights reserved.