com.jwebmp.guicedpersistence.c3p0.implementations.C3P0ModuleExclusions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of guiced-persistence-c3p0 Show documentation
Show all versions of guiced-persistence-c3p0 Show documentation
Enables C3P0 with Hibernate connections in the GuicedPersistence provider
Requires JDK 8 and up
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;
}
}