Package jmri.util.startup
Class StartupActionModelUtil
- java.lang.Object
-
- jmri.beans.UnboundBean
-
- jmri.beans.Bean
-
- jmri.util.startup.StartupActionModelUtil
-
- All Implemented Interfaces:
BeanInterface
,PropertyChangeFirer
,PropertyChangeProvider
,Disposable
public class StartupActionModelUtil extends Bean implements Disposable
Maintain a list of actions that can be used byAbstractActionModel
and its descendants. This list is populated byStartupActionFactory
instances registered with aServiceLoader
.
-
-
Field Summary
-
Fields inherited from class jmri.beans.Bean
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description StartupActionModelUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Called when disposing of a disposable.java.lang.String
getActionName(java.lang.Class<?> clazz)
java.lang.String
getActionName(java.lang.String className)
java.lang.Class<?>[]
getClasses()
java.lang.String
getClassName(java.lang.String name)
static StartupActionModelUtil
getDefault()
Get the default StartupActionModelUtil instance, creating it if necessary.java.lang.String[]
getNames()
java.lang.String
getOverride(java.lang.String name)
boolean
isSystemConnectionAction(java.lang.Class<?> clazz)
boolean
isSystemConnectionAction(java.lang.String className)
-
Methods inherited from class jmri.beans.Bean
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, isNotifyOnEDT, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from class jmri.beans.UnboundBean
getIndexedProperty, getProperty, getPropertyNames, hasIndexedProperty, hasProperty, setIndexedProperty, setProperty
-
-
-
-
Constructor Detail
-
StartupActionModelUtil
public StartupActionModelUtil()
-
-
Method Detail
-
getDefault
@Nonnull public static StartupActionModelUtil getDefault()
Get the default StartupActionModelUtil instance, creating it if necessary.- Returns:
- the default instance
-
getActionName
@CheckForNull public java.lang.String getActionName(@Nonnull java.lang.Class<?> clazz)
-
getActionName
@CheckForNull public java.lang.String getActionName(@Nonnull java.lang.String className)
-
isSystemConnectionAction
public boolean isSystemConnectionAction(@Nonnull java.lang.Class<?> clazz)
-
isSystemConnectionAction
public boolean isSystemConnectionAction(@Nonnull java.lang.String className)
-
getClassName
@CheckForNull public java.lang.String getClassName(@CheckForNull java.lang.String name)
-
getNames
@CheckForNull public java.lang.String[] getNames()
-
getClasses
@Nonnull public java.lang.Class<?>[] getClasses()
-
getOverride
@CheckForNull public java.lang.String getOverride(@CheckForNull java.lang.String name)
-
dispose
public void dispose()
Description copied from interface:Disposable
Called when disposing of a disposable.Note there are no assurances this method will not be called multiple times against a single instance of this Disposable. It is the responsibility of this Disposable to protect itself and the application from ensuring that calling this method multiple times has no unwanted side effects.
- Specified by:
dispose
in interfaceDisposable
-
-