001package jmri.jmrit.z21server;
002
003
004import jmri.util.startup.AbstractStartupActionFactory;
005import jmri.util.startup.StartupActionFactory;
006import org.openide.util.lookup.ServiceProvider;
007
008import java.util.Locale;
009
010/**
011 * Factory for roster startup actions.
012 *
013 * @author Randall Wood Copyright 2020
014 */
015@ServiceProvider(service = StartupActionFactory.class)
016public final class Z21serverStartupActionFactory extends AbstractStartupActionFactory {
017
018    @Override
019    public String getTitle(Class<?> clazz, Locale locale) throws IllegalArgumentException {
020        if (clazz.equals(Z21serverCreationAction.class)) {
021            return Bundle.getMessage(locale, "MenuStartServer");
022        }
023        throw new IllegalArgumentException(clazz.getName() + " is not supported by " + this.getClass().getName());
024    }
025
026    @Override
027    public Class<?>[] getActionClasses() {
028        return new Class[]{Z21serverCreationAction.class};
029    }
030
031}