Package com.avaje.ebeaninternal.server.util

Examples of com.avaje.ebeaninternal.server.util.ClassPathSearchFilter


       
        BootupClasses bc = new BootupClasses();

        long st = System.currentTimeMillis();

        ClassPathSearchFilter filter = createFilter();

        ClassPathSearch finder = new ClassPathSearch(classLoader, filter, bc);

        finder.findClasses();
        Set<String> jars = finder.getJarHits();
View Full Code Here


    }
  }

  private ClassPathSearchFilter createFilter() {

    ClassPathSearchFilter filter = new ClassPathSearchFilter();
    filter.addDefaultExcludePackages();

        if (packages != null && packages.size() > 0) {
            for (String packageName : packages) {
                filter.includePackage(packageName);
            }

            // if they specified include packages, they don't want by default to include everything
            filter.setDefaultPackageMatch(false);
        }

        if (jars != null && jars.size() > 0) {
            for (String jarName : jars) {
                filter.includeJar(jarName);
            }

            // if they specified jars to specifically include, they don't want everything included
            filter.setDefaultJarMatch(false);
        }

    return filter;
  }
View Full Code Here

TOP

Related Classes of com.avaje.ebeaninternal.server.util.ClassPathSearchFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.