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

org.etlunit.feature.postgresql_database.PostgreSQLDatabaseFeatureModule Maven / Gradle / Ivy

There is a newer version: 1.6.9
Show newest version
package org.etlunit.feature.postgresql_database;

import com.google.inject.Injector;
import org.etlunit.feature.FeatureModule;
import org.etlunit.feature.AbstractFeature;
import org.etlunit.NullClassListener;
import org.etlunit.TestAssertionFailure;
import org.etlunit.TestExecutionError;
import org.etlunit.TestWarning;
import org.etlunit.feature.database.DatabaseFeatureModule;
import org.etlunit.parser.ETLTestOperation;
import org.etlunit.parser.ETLTestValueObject;
import org.etlunit.context.VariableContext;
import org.etlunit.ExecutionContext;
import org.etlunit.ClassListener;

import javax.inject.Inject;
import java.util.Arrays;
import java.util.List;

@FeatureModule
public class PostgreSQLDatabaseFeatureModule extends AbstractFeature {
	private DatabaseFeatureModule databaseFeatureModule;
	private PostgreSQLDatabaseImplementation postgreSQLDatabaseImplementation;

	private static final List prerequisites = Arrays.asList("database");

	@Inject
	public void setDatabaseFeatureModule(DatabaseFeatureModule module)
	{
		databaseFeatureModule = module;
	}

	@Override
	public void dispose()
	{
		postgreSQLDatabaseImplementation.dispose();
	}

	@Override
	public List getPrerequisites() {
		return prerequisites;
	}

	public String getFeatureName() {
		return "postgresql-database";
	}

	@Override
	public void initialize(Injector inj)
	{
		postgreSQLDatabaseImplementation = postCreate(new PostgreSQLDatabaseImplementation());
		databaseFeatureModule.addDatabaseImplementation(postgreSQLDatabaseImplementation);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy