public class

MigrationHandlerModuleDescriptor

extends BaseWeightedModuleDescriptor<T>
java.lang.Object
   ↳ com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
     ↳ com.atlassian.bitbucket.scm.BaseWeightedModuleDescriptor<T>
       ↳ com.atlassian.bitbucket.migration.MigrationHandlerModuleDescriptor

Class Overview

Module descriptor for providing 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

The key attribute on <migration> and the class attribute on <exporter> and <importer> are required.

See Also

Summary

Constants
String XML_ELEMENT_NAME
[Expand]
Inherited Fields
From class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
From interface com.atlassian.bitbucket.util.Weighted
Public Constructors
MigrationHandlerModuleDescriptor(ModuleFactory moduleFactory)
Public Methods
void disabled()
@Nonnull Exporter getExporter()
@Nonnull Optional<Importer> getImporter()
Void getModule()
void init(Plugin plugin, Element element)
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.scm.BaseWeightedModuleDescriptor
From class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
From class java.lang.Object
From interface com.atlassian.bitbucket.util.Weighted
From interface com.atlassian.plugin.ModuleDescriptor
From interface com.atlassian.plugin.Resourced
From interface com.atlassian.plugin.ScopeAware
From interface com.atlassian.plugin.StateAware
From interface java.lang.Comparable

Constants

public static final String XML_ELEMENT_NAME

Constant Value: "migration-handler"

Public Constructors

public MigrationHandlerModuleDescriptor (ModuleFactory moduleFactory)

Public Methods

public void disabled ()

@Nonnull public Exporter getExporter ()

@Nonnull public Optional<Importer> getImporter ()

public Void getModule ()

public void init (Plugin plugin, Element element)

Throws
PluginParseException