Package jmri.server.json
Class JsonServerStartupActionFactory
- java.lang.Object
-
- jmri.util.startup.AbstractStartupActionFactory
-
- jmri.server.json.JsonServerStartupActionFactory
-
- All Implemented Interfaces:
JmriServiceProviderInterface
,StartupActionFactory
public final class JsonServerStartupActionFactory extends AbstractStartupActionFactory
-
-
Constructor Summary
Constructors Constructor Description JsonServerStartupActionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>[]
getActionClasses()
Get the classes this factory supports.java.lang.String[]
getOverriddenClasses(java.lang.Class<?> clazz)
Get startup actions overridden by the given class.java.lang.String
getTitle(java.lang.Class<?> clazz, java.util.Locale locale)
Get the title for the given class.-
Methods inherited from class jmri.util.startup.AbstractStartupActionFactory
getTitle
-
-
-
-
Constructor Detail
-
JsonServerStartupActionFactory
public JsonServerStartupActionFactory()
-
-
Method Detail
-
getTitle
public java.lang.String getTitle(java.lang.Class<?> clazz, java.util.Locale locale)
Description copied from interface:StartupActionFactory
Get the title for the given class.- Parameters:
clazz
- the classlocale
- the desired locale for the title- Returns:
- the title in the given locale
-
getActionClasses
public java.lang.Class<?>[] getActionClasses()
Description copied from interface:StartupActionFactory
Get the classes this factory supports.- Returns:
- the supported classes or an empty array
-
getOverriddenClasses
public java.lang.String[] getOverriddenClasses(java.lang.Class<?> clazz)
Description copied from class:AbstractStartupActionFactory
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:
getOverriddenClasses
in interfaceStartupActionFactory
- Overrides:
getOverriddenClasses
in classAbstractStartupActionFactory
- Parameters:
clazz
- the class- Returns:
- an empty array
-
-