- All Implemented Interfaces:
public class ShutDownManagerInitializer extends AbstractInstanceInitializer
ShutDownManagerthat allows the ShutDownManager to be used to be specified as a Java property.
This InstanceInitializer provides a
DefaultShutDownManager unless the name of the class to
use as the ShutDownManager is specified in the
Java System Property. If the property is specified, it must be a complete
name of a class that implements jmri.ShutDownManager and has a public default
Constructors Constructor Description
The default implementation always throws an IllegalArgumentException. If called by an overriding method, the last line of the overriding method should be
return super.getDefault(type);. Provide a default instance of the given class.
Note calling this method twice for the same class should not be expected to return the same instance; however, there is no guarantee that the same instance will not be returned for two calls to this method.
The default implementation returns an empty set. Get the set of classes for which this InstanceInitializer can provide default instances for.