com.jwebmp.guicedpersistence.readers.eclipselink.EclipseModuleExclusions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of guiced-persistence-eclipselink-reader Show documentation
Show all versions of guiced-persistence-eclipselink-reader Show documentation
Reads EclipseLink properties from a persistence.xml file for the Guice Persist framework
package com.jwebmp.guicedpersistence.readers.eclipselink;
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 EclipseModuleExclusions
implements IGuiceScanJarExclusions,
IGuiceScanModuleExclusions
{
@Override
public @NotNull Set excludeJars()
{
Set strings = new HashSet<>();
strings.add("org.eclipse.persistence.antlr*");
strings.add("org.eclipse.persistence.asm*");
strings.add("org.eclipse.persistence.core*");
strings.add("org.eclipse.persistence.jpa*");
return strings;
}
@Override
public @NotNull Set excludeModules()
{
Set strings = new HashSet<>();
strings.add("eclipselink.antlr");
strings.add("eclipselink.asm");
strings.add("eclipselink.core");
strings.add("eclipselink.jpa");
return strings;
}
}