From: Dave D. <djd...@us...> - 2008-09-27 17:35:32
|
Update of /cvsroot/jmri/jmri In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv9918 Modified Files: InstanceManager.java Log Message: Add Sections and Transits Index: InstanceManager.java =================================================================== RCS file: /cvsroot/jmri/jmri/InstanceManager.java,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** InstanceManager.java 30 Apr 2008 23:06:03 -0000 1.32 --- InstanceManager.java 27 Sep 2008 17:35:28 -0000 1.33 *************** *** 62,65 **** --- 62,81 ---- } + static public SectionManager sectionManagerInstance() { + if (instance().sectionManager != null) return instance().sectionManager; + // As a convenience, we create a default object if none was provided explicitly. + // This must be replaced when we start registering specific implementations + instance().sectionManager = new SectionManager(); + return instance().sectionManager; + } + + static public TransitManager transitManagerInstance() { + if (instance().transitManager != null) return instance().transitManager; + // As a convenience, we create a default object if none was provided explicitly. + // This must be replaced when we start registering specific implementations + instance().transitManager = new TransitManager(); + return instance().transitManager; + } + static public RouteManager routeManagerInstance() { if (instance().routeManager != null) return instance().routeManager; *************** *** 232,235 **** --- 248,255 ---- private BlockManager blockManager = null; + + private SectionManager sectionManager = null; + + private TransitManager transitManager = null; private RouteManager routeManager = null; |