use of jmri.NamedBeanHandleManager in project JMRI by JMRI.
the class AppsBase method installManagers.
protected void installManagers() {
// Install a history manager
InstanceManager.store(new FileHistory(), FileHistory.class);
// record startup
InstanceManager.getDefault(FileHistory.class).addOperation("app", Application.getApplicationName(), null);
// Install a user preferences manager
InstanceManager.store(JmriUserPreferencesManager.getDefault(), UserPreferencesManager.class);
// install the abstract action model that allows items to be added to the, both
// CreateButton and Perform Action Model use a common Abstract class
InstanceManager.store(new CreateButtonModel(), CreateButtonModel.class);
// install preference manager
InstanceManager.store(new TabbedPreferences(), TabbedPreferences.class);
// install the named bean handler
InstanceManager.store(new NamedBeanHandleManager(), NamedBeanHandleManager.class);
//Install Entry Exit Pairs Manager
InstanceManager.store(new EntryExitPairs(), EntryExitPairs.class);
}
use of jmri.NamedBeanHandleManager in project JMRI by JMRI.
the class SignalSystemTest method setUp.
@Before
public void setUp() {
apps.tests.Log4JFixture.setUp();
JUnitUtil.resetInstanceManager();
JUnitUtil.initConfigureManager();
InstanceManager.store(new NamedBeanHandleManager(), NamedBeanHandleManager.class);
JUnitUtil.initInternalTurnoutManager();
JUnitUtil.initInternalLightManager();
JUnitUtil.initInternalSensorManager();
JUnitUtil.initMemoryManager();
}
use of jmri.NamedBeanHandleManager in project JMRI by JMRI.
the class ConsistFunctionControllerTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
apps.tests.Log4JFixture.setUp();
InstanceManager.setDefault(NamedBeanHandleManager.class, new NamedBeanHandleManager());
}
use of jmri.NamedBeanHandleManager in project JMRI by JMRI.
the class DeviceServerTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
apps.tests.Log4JFixture.setUp();
JUnitUtil.resetInstanceManager();
InstanceManager.setDefault(NamedBeanHandleManager.class, new NamedBeanHandleManager());
}
use of jmri.NamedBeanHandleManager in project JMRI by JMRI.
the class MultiThrottleControllerTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
apps.tests.Log4JFixture.setUp();
JUnitUtil.resetInstanceManager();
InstanceManager.setDefault(NamedBeanHandleManager.class, new NamedBeanHandleManager());
}
Aggregations