// don't allow instanciation from external objects private BankModule() { // Set clock timer clock.registerRepeated( new ClockHandler(statusClockHandler), TimeLength.untilTomorrow(), TimeLength.ONEDAY); clock.registerRepeated( new ClockHandler(statusClockHandler), TimeLength.untilTomorrow() + TimeLength.fromHours(BankConfig.openHour), TimeLength.ONEDAY); if (BankConfig.openHour % 24 != BankConfig.closeHour % 24) { clock.registerRepeated( new ClockHandler(statusClockHandler), TimeLength.untilTomorrow() + TimeLength.fromHours(BankConfig.closeHour), TimeLength.ONEDAY); } }