Interface MigrationHandler


public interface MigrationHandler
Migrate a tcomp data instance from one version to another one. This uses a flat format to make any conversion very easy and an "untyped" structure to avoid
  • to require the type to be passed through the layers
  • to require to instantiate unknown objects
This is linked to a component through Version to ensure cross inputs can be handled.
  • Method Details

    • migrate

      Map<String,String> migrate(int incomingVersion, Map<String,String> incomingData)
      Parameters:
      incomingVersion - the version of associatedData values.
      incomingData - the data sent from the caller. Keys are using the path of the property as in component metadata.
      Returns:
      the set of properties for the current version.