au.net.causal.maven.plugins.boxdb.db.MariaDbFactory Maven / Gradle / Ivy
package au.net.causal.maven.plugins.boxdb.db;
@BoxDbBundled
public class MariaDbFactory extends BaseMySqlFactory
{
public MariaDbFactory()
{
super("mariadb");
}
@Override
protected void initializeDefaults(BoxConfiguration boxConfiguration)
{
if (boxConfiguration.getDatabaseVersion() == null)
boxConfiguration.setDatabaseVersion("10.4");
super.initializeDefaults(boxConfiguration);
}
@Override
protected MariaDbDatabase createDockerDatabase(BoxConfiguration boxConfiguration, ProjectConfiguration projectConfiguration, BoxContext context)
throws BoxDatabaseException
{
return new MariaDbDatabase(boxConfiguration, projectConfiguration, context, dockerRegistry(), dockerRepositoryName());
}
}