001package jmri.server.json;
002
003import java.util.Locale;
004import jmri.util.startup.AbstractStartupActionFactory;
005import jmri.util.startup.StartupActionFactory;
006import org.openide.util.lookup.ServiceProvider;
007
008@ServiceProvider(service = StartupActionFactory.class)
009public final class JsonServerStartupActionFactory extends AbstractStartupActionFactory {
010
011    @Override
012    public String getTitle(Class<?> clazz, Locale locale) {
013        if (clazz.equals(JsonServerAction.class)) {
014            return Bundle.getMessage(locale, "StartJsonServerAction"); // NOI18N
015        }
016        throw new IllegalArgumentException(clazz.getName() + " is not supported by " + this.getClass().getName());
017    }
018
019    @Override
020    public Class<?>[] getActionClasses() {
021        return new Class<?>[]{JsonServerAction.class};
022    }
023
024    @Override
025    public String[] getOverriddenClasses(Class<?> clazz) {
026        return new String[]{"jmri.jmris.json.JsonServerAction"};
027    }
028}