Class ConfigurationBuilder

  • All Implemented Interfaces:

    public class ConfigurationBuilder
    extends Object
    implements Configuration
    Configuration builder for instantiating Reflections
     // add urls for package prefix, use default scanners
     new Reflections(
       new ConfigurationBuilder()
     new Reflections(
       new ConfigurationBuilder()
         .addUrls(ClasspathHelper.forPackage("org.reflections"))   // add urls for package prefix
         .addScanners(Scanners.values())                           // use all standard scanners
         .filterInputsBy(new FilterBuilder().includePackage(...))) // optionally filter inputs

    defaults scanners: Scanners.SubTypes and Scanners.TypesAnnotated

    (breaking changes) Inputs filter will NOT be set automatically, consider adding in case too many classes are scanned.