@Test public void createClient_whenClientTypeIsAim() { AimClient aimClient; aimClient = factoriesManager.createClient( "accessKey", "secretKey", "", "US East ( N. Virginia)", ClientType.AIM ); Assert.assertNotNull( aimClient ); }
public <T> T createClient( String accessKey, String secretKey, String sessionToken, String region, ClientType clientType ) { AbstractClientFactory clientFactory = getClientFactory( clientType ); T amazonClient = (T) clientFactory.createClient( accessKey, secretKey, sessionToken, region ); return amazonClient; }
ClientFactoriesManager { public <T> T createClient( String accessKey, String secretKey, String sessionToken, String region, ClientType clientType ) { AbstractClientFactory clientFactory = getClientFactory( clientType ); T amazonClient = (T) clientFactory.createClient( accessKey, secretKey, sessionToken, region ); return amazonClient; } }
ClientFactoriesManager { public <T> T createClient( String accessKey, String secretKey, String sessionToken, String region, ClientType clientType ) { AbstractClientFactory clientFactory = getClientFactory( clientType ); T amazonClient = (T) clientFactory.createClient( accessKey, secretKey, sessionToken, region ); return amazonClient; } private  ClientFactoriesManager(); }
ClientFactoriesManager { public <T> T createClient( String accessKey, String secretKey, String sessionToken, String region, ClientType clientType ) { AbstractClientFactory clientFactory = getClientFactory( clientType ); T amazonClient = (T) clientFactory.createClient( accessKey, secretKey, sessionToken, region ); return amazonClient; } private  ClientFactoriesManager(); static ClientFactoriesManager getInstance(); T createClient( String accessKey, String secretKey, String sessionToken, String region, ClientType clientType ); }
ClientFactoriesManager { public <T> T createClient( String accessKey, String secretKey, String sessionToken, String region, ClientType clientType ) { AbstractClientFactory clientFactory = getClientFactory( clientType ); T amazonClient = (T) clientFactory.createClient( accessKey, secretKey, sessionToken, region ); return amazonClient; } private  ClientFactoriesManager(); static ClientFactoriesManager getInstance(); T createClient( String accessKey, String secretKey, String sessionToken, String region, ClientType clientType );  }