Package jmri.util.startup
Class AbstractStartupActionFactory
java.lang.Object
jmri.util.startup.AbstractStartupActionFactory
- All Implemented Interfaces:
JmriServiceProviderInterface,StartupActionFactory
- Direct Known Subclasses:
AnalogClockStartupActionFactory,AppsStartupActionFactory,AutomatTableStartupActionFactory,BeanTableStartupActionFactory,BlockBossStartupActionFactory,ConfigureXmlStartupActionFactory,ConsistToolStartupActionFactory,CtcEditorStartup,CtcRunStartup,DispatcherStartupActionFactory,DualDecoderStartupActionFactory,JmriSRCPStartupActionFactory,JsonServerStartupActionFactory,JythonStartupActionFactory,LcdClockStartupActionFactory,LnTcpStartupActionFactory,MeterStartupActionFactory,NixieClockStartupActionFactory,OperationsStartupActionFactory,PanelStartupActionFactory,PowerStartupActionFactory,ResourceBundleStartupActionFactory,RosterFrameStartupActionFactory,RosterStartupActionFactory,SampleConfigStartUpActionFactory,SendPacketStartupActionFactory,ServerStartupActionFactory,SimpleClockStartupActionFactory,SimpleLightCtrlStartupActionFactory,SimpleProgStartupActionFactory,SimpleServerStartupActionFactory,SimpleTurnoutCtrlStartupActionFactory,SpeedometerStartupActionFactory,SpeedoStartupActionFactory,SymbolicProgStartupActionFactory,TabbedPreferencesActionFactory,TcpServerStartupActionFactory,ThrottleStartupActionFactory,TimeTableStartup,ToolsStartupActionFactory,TreeControlStartupActionFactory,UsbBrowserStartupActionFactory,VSDecoderCreationStartupActionFactory,WebServerStartupActionFactory,WiThrottleStartupActionFactory,Z21serverStartupActionFactory
Abstract implementation of
StartupActionFactory that covers some
boilerplate code for most implementations.-
Constructor Details
-
AbstractStartupActionFactory
public AbstractStartupActionFactory()
-
-
Method Details
-
getTitle
Get the title for the given class using the default locale.This implementation calls
StartupActionFactory.getTitle(java.lang.Class, java.util.Locale)with the default locale.- Specified by:
getTitlein interfaceStartupActionFactory- Parameters:
clazz- the class- Returns:
- the title
- Throws:
IllegalArgumentException- if the class is not supported by this factory
-
getOverriddenClasses
Get startup actions overridden by the given class. This is designed to allow a new class to replace a deprecated class.Note: the behavior is undefined if multiple classes override a single class.
This implementation returns an empty array.
- Specified by:
getOverriddenClassesin interfaceStartupActionFactory- Parameters:
clazz- the class- Returns:
- an empty array
- Throws:
IllegalArgumentException- if the class is not supported by this factory
-