PageRenderTime 549ms CodeModel.GetById 31ms RepoModel.GetById 0ms app.codeStats 0ms

/aws-java-sdk-kinesis/src/test/java/com/amazonaws/services/kinesisfirehose/smoketests/AmazonKinesisFirehoseModuleInjector.java

https://github.com/aws/aws-sdk-java
Java | 47 lines | 23 code | 8 blank | 16 comment | 0 complexity | d52b35b6cbd8852f9bfbdfe7928aec13 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.kinesisfirehose.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.kinesisfirehose.AmazonKinesisFirehoseClient;
  23. /**
  24. * Injector that binds the AmazonWebServiceClient interface to the
  25. * com.amazonaws.services.kinesisfirehose.AmazonKinesisFirehoseClient
  26. */
  27. @Generated("com.amazonaws:aws-java-sdk-code-generator")
  28. public class AmazonKinesisFirehoseModuleInjector implements InjectorSource {
  29. @Override
  30. public Injector getInjector() {
  31. return Guice.createInjector(Stage.PRODUCTION, CucumberModules.SCENARIO, new AmazonKinesisFirehoseModule());
  32. }
  33. static class AmazonKinesisFirehoseModule extends AbstractModule {
  34. @Override
  35. protected void configure() {
  36. bind(AmazonWebServiceClient.class).to(AmazonKinesisFirehoseClient.class);
  37. }
  38. }
  39. }