org.eclipse.emf.emfstore.internal.migration
Class EMFStoreMigratorUtil

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.migration.EMFStoreMigratorUtil

public final class EMFStoreMigratorUtil
extends Object

Controller for migrating models in EMFStore. Manages all registered migrators.

Author:
koegel

Method Summary
static EMFStoreMigrator getEMFStoreMigrator()
          Retrieve a migrator.
static boolean isMigratorAvailable()
          Check if any migrators are registered.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isMigratorAvailable

public static boolean isMigratorAvailable()
Check if any migrators are registered.

Returns:
true, if migrators are available.

getEMFStoreMigrator

public static EMFStoreMigrator getEMFStoreMigrator()
                                            throws EMFStoreMigrationException
Retrieve a migrator. Will default to the first loadable migrator if multiple migrators are available.

Returns:
the migrator
Throws:
EMFStoreMigrationException - if no migrators are available or can be loaded.


Copyright © 2015. All Rights Reserved.