com.guicedee.guicedpersistence.jpa.implementations.JPAModuleExclusions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of guiced-persistence-jpa Show documentation
Show all versions of guiced-persistence-jpa Show documentation
A complete JPA 2.1 implementation for Standalone or EE Implementation. Enables Multiple Persistence units
with annotated injection support aPerfect for Guice implementations, test suites, and Guice enabled Web Applications or EAR Projects.
Requires JDK 8 and up
package com.guicedee.guicedpersistence.jpa.implementations;
import com.guicedee.guicedinjection.interfaces.IGuiceScanJarExclusions;
import com.guicedee.guicedinjection.interfaces.IGuiceScanModuleExclusions;
import javax.validation.constraints.NotNull;
import java.util.HashSet;
import java.util.Set;
public class JPAModuleExclusions
implements IGuiceScanModuleExclusions,
IGuiceScanJarExclusions
{
@Override
public @NotNull Set excludeJars()
{
Set strings = new HashSet<>();
strings.add("guiced-persistence-jpa-*");
return strings;
}
@Override
public @NotNull Set excludeModules()
{
Set strings = new HashSet<>();
strings.add("com.guicedee.guicedpersistence.jpa");
return strings;
}
}