Class MigratorRegistry
- java.lang.Object
-
- org.eclipse.emf.edapt.migration.execution.MigratorRegistry
-
public final class MigratorRegistry extends Object
Registry for all migrators (singleton). A migrator is registered as an Eclipse extension.- Version:
- $Rev$
- Author:
- herrmama, $Author$
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MigratorRegistry
getInstance()
Getter for instance.Migrator
getMigrator(String nsURI)
Get a migrator by its namespace already stripped from version.Migrator
getMigrator(org.eclipse.emf.common.util.URI modelURI)
Get a migrator for a certain model.void
registerMigrator(URL migratorURL, IClassLoader loader)
Register a migrator by its URL.void
registerMigrator(org.eclipse.emf.common.util.URI migratorURI, IClassLoader loader)
Register a migrator by its URI.
-
-
-
Method Detail
-
getInstance
public static MigratorRegistry getInstance()
Getter for instance.
-
registerMigrator
public void registerMigrator(URL migratorURL, IClassLoader loader) throws MigrationException
Register a migrator by its URL.- Throws:
MigrationException
-
registerMigrator
public void registerMigrator(org.eclipse.emf.common.util.URI migratorURI, IClassLoader loader) throws MigrationException
Register a migrator by its URI.- Throws:
MigrationException
-
getMigrator
public Migrator getMigrator(String nsURI)
Get a migrator by its namespace already stripped from version.
-
getMigrator
public Migrator getMigrator(org.eclipse.emf.common.util.URI modelURI)
Get a migrator for a certain model.
-
-