PageRenderTime 616ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/aws-java-sdk-cognitoidentity/src/test/java/com/amazonaws/services/cognitoidentity/smoketests/AmazonCognitoIdentityModuleInjector.java

https://github.com/aws/aws-sdk-java
Java | 47 lines | 23 code | 8 blank | 16 comment | 0 complexity | e125c766d5e840a2cd4a2e26cdb6e747 MD5 | raw file
  1. /*
  2. * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
  5. * the License. A copy of the License is located at
  6. *
  7. * http://aws.amazon.com/apache2.0
  8. *
  9. * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
  10. * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
  11. * and limitations under the License.
  12. */
  13. package com.amazonaws.services.cognitoidentity.smoketests;
  14. import javax.annotation.Generated;
  15. import com.google.inject.AbstractModule;
  16. import com.google.inject.Guice;
  17. import com.google.inject.Injector;
  18. import com.google.inject.Stage;
  19. import cucumber.api.guice.CucumberModules;
  20. import cucumber.runtime.java.guice.InjectorSource;
  21. import com.amazonaws.AmazonWebServiceClient;
  22. import com.amazonaws.services.cognitoidentity.AmazonCognitoIdentityClient;
  23. /**
  24. * Injector that binds the AmazonWebServiceClient interface to the
  25. * com.amazonaws.services.cognitoidentity.AmazonCognitoIdentityClient
  26. */
  27. @Generated("com.amazonaws:aws-java-sdk-code-generator")
  28. public class AmazonCognitoIdentityModuleInjector implements InjectorSource {
  29. @Override
  30. public Injector getInjector() {
  31. return Guice.createInjector(Stage.PRODUCTION, CucumberModules.SCENARIO, new AmazonCognitoIdentityModule());
  32. }
  33. static class AmazonCognitoIdentityModule extends AbstractModule {
  34. @Override
  35. protected void configure() {
  36. bind(AmazonWebServiceClient.class).to(AmazonCognitoIdentityClient.class);
  37. }
  38. }
  39. }