use of org.jboss.shrinkwrap.impl.BeansXml.Exclude in project core by weld.
the class ConfigTestBase method baseDeployment.
public static WebArchive baseDeployment(final Package... excludedPackages) {
BeansXml beansXml = new BeansXml();
ArrayList<Exclude> filters = new ArrayList<Exclude>();
for (Package pckg : excludedPackages) {
filters.add(Exclude.match(pckg.getName() + ".**"));
}
beansXml.excludeFilters(filters.toArray(new Exclude[filters.size()]));
return Deployments.baseDeployment(beansXml);
}