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

com.jwebmp.guicedpersistence.c3p0.implementations.C3P0ModuleExclusions Maven / Gradle / Ivy

Go to download

Enables C3P0 with Hibernate connections in the GuicedPersistence provider Requires JDK 8 and up

There is a newer version: 0.68.0.1
Show newest version
package com.jwebmp.guicedpersistence.c3p0.implementations;

import com.jwebmp.guicedinjection.interfaces.IGuiceScanJarExclusions;
import com.jwebmp.guicedinjection.interfaces.IGuiceScanModuleExclusions;

import javax.validation.constraints.NotNull;
import java.util.HashSet;
import java.util.Set;

public class C3P0ModuleExclusions
		implements IGuiceScanJarExclusions,
				           IGuiceScanModuleExclusions
{
	@Override
	public @NotNull Set excludeJars()
	{
		Set strings = new HashSet<>();
		strings.add("c3p0-*");
		strings.add("mchange-commons-*");
		strings.add("hibernate-c3p0-*");
		return strings;
	}

	@Override
	public @NotNull Set excludeModules()
	{
		Set strings = new HashSet<>();
		strings.add("com.jwebmp.guicedpersistence.c3p0");
		strings.add("c3p0");
		return strings;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy