All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.cucumber.ModuleInjector.ftl Maven / Gradle / Ivy

Go to download

The AWS SDK for Java - Code Generator module holds the classes and templates required to generate the AWS Java SDK clients for AWS services.

There is a newer version: 1.12.772
Show newest version
${fileHeader}
<#assign packageName = metadata.packageName/>
<#assign clientName = metadata.syncClient/>
<#assign interfaceName = metadata.syncInterface/>
package ${metadata.smokeTestsPackageName};

import javax.annotation.Generated;

import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Stage;

import cucumber.api.guice.CucumberModules;
import cucumber.runtime.java.guice.InjectorSource;

import com.amazonaws.AmazonWebServiceClient;
import ${packageName}.${clientName};

/**
 * Injector that binds the AmazonWebServiceClient interface to the
 *  ${packageName}.${clientName}
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ${interfaceName}ModuleInjector implements InjectorSource {

    @Override
    public Injector getInjector() {
        return Guice.createInjector(Stage.PRODUCTION, CucumberModules.SCENARIO, new  ${interfaceName}Module());
    }

    static class  ${interfaceName}Module extends AbstractModule {

        @Override
        protected void configure() {
            bind(AmazonWebServiceClient.class).to(${clientName}.class);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy