Set<String> pathFilters = new HashSet<String>(), packageFilters = new HashSet<String>(); pathFilters.add("stripes"); packageFilters.add("net.sourceforge.stripes.*"); Set<Class<ZeroImplementations>> impls = ResolverUtil.getImplementations(ZeroImplementations.class, pathFilters, packageFilters);
Set<String> pathFilters = Literal.set("stripes"), packageFilters = Literal.set("net.sourceforge.stripes.*");  ResolverUtil<ZeroImplementations> resolver = new ResolverUtil<ZeroImplementations>(); resolver.setLocationFilters(pathFilters); resolver.setPackageFilters(packageFilters); resolver.loadImplementationsFromContextClassloader(ZeroImplementations.class);  Set<Class<? extends ZeroImplementations>> impls = resolver.getClasses();
    public void testFindZeroImplementations() throws Exception {        Set<String> pathFilters = new HashSet<String>(), packageFilters = new HashSet<String>();        pathFilters.add("stripes");        packageFilters.add("net.sourceforge.stripes.*");        Set<Class<ZeroImplementations>> impls =                ResolverUtil.getImplementations(ZeroImplementations.class,                                                pathFilters,                                                packageFilters);        Assert.assertTrue(impls.size() == 0,                          "There should not have been any implementations.");    }