import { VSCodeOutputAdapter } from './VSCodeOutputAdapter' ; export class VSCodeBlockchainDockerOutputAdapter extends VSCodeOutputAdapter { public static channels : VSCodeBlockchainDockerOutputAdapter [ ] = [ ] ; public static instance ( name ) { let channel = this . channels . find ( ( _channel ) => { return name === _channel . channelName ; } ) ; if ( ! channel ) { channel = new VSCodeBlockchainDockerOutputAdapter ( name ) ; this . channels . push ( channel ) ; } return channel ; } private constructor ( channelName ) { super ( channelName ) ; } }