Class LogixNG_AnalogInstanceInitializer

  • All Implemented Interfaces:

    public class LogixNG_AnalogInstanceInitializer
    extends AbstractInstanceInitializer
    Provide the usual default implementations for the InstanceManager.

    Not all InstanceManager related classes are provided by this class. See the discussion in InstanceManager of initialization methods.

    This file is part of JMRI.

    JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

    JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> java.lang.Object getDefault​(java.lang.Class<T> type)
      The default implementation always throws an IllegalArgumentException.
      java.util.Set<java.lang.Class<?>> getInitalizes()
      The default implementation returns an empty set.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getDefault

        public <T> java.lang.Object getDefault​(java.lang.Class<T> type)
        Description copied from class: AbstractInstanceInitializer
        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.

        Specified by:
        getDefault in interface InstanceInitializer
        getDefault in class AbstractInstanceInitializer
        Type Parameters:
        T - the class to get the default for
        type - the class to get the default for
        the newly created default for the given class