Examples of FilterBuilder


Examples of org.jboss.errai.reflections.util.FilterBuilder

      // Now get all files in the message bundle (all localized versions)
      // TODO optimize this - scan the classpath once and then pull out just the resources we need
      MessageBundleScanner scanner = new MessageBundleScanner(
              new ConfigurationBuilder()
              .filterInputsBy(new FilterBuilder().include(".*json"))
              .setUrls(ClasspathHelper.forClassLoader())
              .setScanners(new MessageBundleResourceScanner(bundlePath)));
      Collection<String> resources = scanner.getStore().get(MessageBundleResourceScanner.class).values();
      // If we didn't find at least the specified root bundle file, that's a problem.
      if (!resources.contains(bundlePath)) {
View Full Code Here

Examples of org.reflections.util.FilterBuilder

                        ClasspathHelper.forClassLoader(
                            ClasspathHelper.contextClassLoader(),
                            ClasspathHelper.staticClassLoader()
                        )
                    ).filterInputsBy(
                    new FilterBuilder().include(
                        FilterBuilder.prefix("com.jcabi.github")
                    )
                    )
            ).getSubTypesOf(Object.class),
            new Predicate<Class<?>>() {
View Full Code Here

Examples of org.reflections.util.FilterBuilder

     * @param packName
     * @return
     */
    private static Reflections getReflection(String packName) {

        Predicate<String> filter = new FilterBuilder().includePackage(
                Constants.DISCONF_PACK_NAME).includePackage(packName);

        //
        Reflections reflections = new Reflections(new ConfigurationBuilder()
                .filterInputsBy(filter)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.