+
+ private static getConfigurationFileWatcher(): fs.FSWatcher {
+ return fs.watch(Configuration.configurationFilePath).on('change', async (e) => {
+ // Nullify to force configuration file reading
+ Configuration.configuration = null;
+ await Bootstrap.getInstance().restart();
+ });
+ }
+
+ private static objectHasOwnProperty(object: any, property: string): boolean {
+ return Object.prototype.hasOwnProperty.call(object, property) as boolean;
+ }
+
+ private static isUndefined(obj: any): boolean {
+ return typeof obj === 'undefined';
+ }