Search in sources :

Example 1 with Exclude

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);
}
Also used : Exclude(org.jboss.shrinkwrap.impl.BeansXml.Exclude) BeansXml(org.jboss.shrinkwrap.impl.BeansXml) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 BeansXml (org.jboss.shrinkwrap.impl.BeansXml)1 Exclude (org.jboss.shrinkwrap.impl.BeansXml.Exclude)1