001package jmri.configurexml;
002
003import java.util.HashMap;
004import java.util.Map;
005import java.util.ResourceBundle;
006import org.openide.util.lookup.ServiceProvider;
007
008/**
009 * Default class migrations for the {@link ConfigXmlManager} to use.
010 *
011 * @author Randall Wood Copyright 2017
012 */
013@ServiceProvider(service = ClassMigration.class)
014public class DefaultClassMigration implements ClassMigration {
015
016    @Override
017    public Map<String, String> getMigrations() {
018        Map<String, String> migrations = new HashMap<>();
019        ResourceBundle bundle = ResourceBundle.getBundle("jmri.configurexml.ClassMigration");
020        bundle.keySet().forEach((key) -> {
021            migrations.put(key, bundle.getString(key));
022        });
023        return migrations;
024    }
025
026}