This commit is contained in:
calzoneman 2016-02-09 23:04:07 -08:00
parent cada5f0b0a
commit 39e3978161
1 changed files with 12 additions and 2 deletions

View File

@ -1,12 +1,22 @@
import NullClusterClient from './io/cluster/nullclusterclient'; import NullClusterClient from './io/cluster/nullclusterclient';
import Config from './config';
import IOConfiguration from './configuration/ioconfig';
class LegacyModule { class LegacyModule {
getIOConfig() {
if (!this.ioConfig) {
this.ioConfig = IOConfiguration.fromOldConfig(Config);
}
return this.ioConfig;
}
getClusterClient() { getClusterClient() {
return new NullClusterClient(); return new NullClusterClient(this.getIOConfig());
} }
onReady() { onReady() {
} }
} }