'use strict' ; import { IFabricWalletGenerator } from '../interfaces/IFabricWalletGenerator' ; export class FabricWalletGeneratorFactory { public static setFabricWalletGenerator ( generator ) { this . instance = generator ; } public static getFabricWalletGenerator ( ) { if ( ! this . instance ) { throw new Error ( 'Must call setFabricWalletGenerator first!' ) ; } return this . instance ; } private static instance : IFabricWalletGenerator = null ; }