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

au.net.causal.maven.plugins.boxdb.db.PostgisFactory Maven / Gradle / Ivy

package au.net.causal.maven.plugins.boxdb.db;

public class PostgisFactory extends PostgresFactory
{
    static final String POSTGIS_DOCKER_REPOSITORY = "kartoza/postgis";

    public PostgisFactory()
    {
        super("postgis");
    }

    @Override
    protected String getPostgresDockerRepository()
    {
        return POSTGIS_DOCKER_REPOSITORY;
    }

    @Override
    protected PostgisDatabase createDockerDatabase(BoxConfiguration boxConfiguration, ProjectConfiguration projectConfiguration, BoxContext context)
    throws BoxDatabaseException
    {
        return new PostgisDatabase(boxConfiguration, projectConfiguration, context, dockerRegistry());
    }

    @Override
    protected void initializeDefaults(BoxConfiguration boxConfiguration)
    {
        if (boxConfiguration.getDatabaseVersion() == null)
            boxConfiguration.setDatabaseVersion("11.0-2.5");

        super.initializeDefaults(boxConfiguration);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy