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 byAbstractActionModeland its descendants. This list is populated byStartupActionFactoryinstances 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 voiddispose()Called when disposing of a disposable.java.lang.StringgetActionName(java.lang.Class<?> clazz)java.lang.StringgetActionName(java.lang.String className)java.lang.Class<?>[]getClasses()java.lang.StringgetClassName(java.lang.String name)static StartupActionModelUtilgetDefault()Get the default StartupActionModelUtil instance, creating it if necessary.java.lang.String[]getNames()java.lang.StringgetOverride(java.lang.String name)booleanisSystemConnectionAction(java.lang.Class<?> clazz)booleanisSystemConnectionAction(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:DisposableCalled 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:
disposein interfaceDisposable
-
-