This commit is contained in:
calzoneman 2016-02-09 23:04:07 -08:00
parent cada5f0b0a
commit 39e3978161

View file

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