001package jmri.jmrix.ieee802154.serialdriver; 002 003import java.util.ResourceBundle; 004import jmri.InstanceManager; 005 006/** 007 * Lightweight class to denote that a system is active, and provide general 008 * information. 009 * <p> 010 * Objects of specific subtypes are registered in the instance manager to 011 * activate their particular system. 012 * 013 * @author Bob Jacobsen Copyright (C) 2010 copied from NCE into powerline for 014 * multiple connections by 015 * @author Ken Cameron Copyright (C) 2011 copied from powerline into IEEE802154 016 * for multiple connections by 017 * @author Paul Bender Copyright (C) 2013 018 */ 019public class SerialSystemConnectionMemo extends jmri.jmrix.ieee802154.IEEE802154SystemConnectionMemo { 020 021 public SerialSystemConnectionMemo() { 022 super(); 023 } 024 025 /** 026 * Tells which managers this class provides. 027 */ 028 @Override 029 public boolean provides(Class<?> type) { 030 if (getDisabled()) { 031 return false; 032 } 033 return false; // nothing, by default 034 } 035 036 /** 037 * Provide manager by class 038 */ 039 @Override 040 public <T> T get(Class<T> T) { 041 if (getDisabled()) { 042 return null; 043 } 044 return null; // nothing, by default 045 } 046 047 /** 048 * Configure the common managers for Powerline connections. This puts the 049 * common manager config in one place. 050 */ 051 @Override 052 public void configureManagers() { 053 // now does nothing here, it's done by the specific class 054 } 055 056 @Override 057 protected ResourceBundle getActionModelResourceBundle() { 058 return ResourceBundle.getBundle("jmri.jmrix.ieee802154.IEEE802154ActionListBundle"); 059 } 060 061 @Override 062 public void dispose() { 063 InstanceManager.deregister(this, SerialSystemConnectionMemo.class); 064 super.dispose(); 065 } 066 067} 068 069 070