Class Context<T,​E>


  • public class Context<T,​E>
    extends java.lang.Object
    Container that holds necessary information for the execution of an MigrationScript
    Author:
    Johannes Rabauer
    • Constructor Detail

      • Context

        public Context​(T migratingObject,
                       VersionAgnosticEmbeddedStorageManager<E> storageManager)
        Parameters:
        migratingObject - that must be migrated to a new version
        storageManager - where the migratingObject is stored
    • Method Detail

      • getMigratingObject

        public T getMigratingObject()
        Returns:
        the current object where the migration is executed upon
      • getStorageManager

        public E getStorageManager()
        Returns:
        the responsible storage manager for the migrating object