public IClient getClientInstance ( ClientType clientType ) { IClient clientInstance = clientImpls . get ( clientType ) ; if ( null == clientInstance ) { if ( ClientType . CLI == clientType ) { clientInstance = new CliClient ( ) ; } if ( null != clientInstance ) { clientImpls . put ( clientType , clientInstance ) ; } } return clientInstance ; }
Gets an instance of the specified client type .