Package org.jboss.errai.reflections.util

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


            addUrls(ClasspathHelper.forClass((Class) urlHint));
            prefixes.add(((Class) urlHint).getPackage().getName());
          }
        }

        final FilterBuilder filter = new FilterBuilder();
        for (String prefix : prefixes) {
          filter.include(FilterBuilder.prefix(prefix));
        }
        filterInputsBy(filter);

        if (scanners != null && scanners.length != 0) {
          for (Scanner scanner : scanners) {
View Full Code Here


   * <p>by default, resources are collected from all urls that contains the package META-INF/reflections
   * and includes files matching the pattern .*-reflections.xml
   */
  public static Reflections collect() {
    return new Reflections(new ConfigurationBuilder()).
        collect("META-INF/reflections", new FilterBuilder().include(".*-reflections.xml"));
  }
View Full Code Here

            addUrls(ClasspathHelper.forClass((Class) urlHint));
            prefixes.add(((Class) urlHint).getPackage().getName());
          }
        }

        final FilterBuilder filter = new FilterBuilder();
        for (String prefix : prefixes) {
          filter.include(FilterBuilder.prefix(prefix));
        }
        filterInputsBy(filter);

        if (scanners != null && scanners.length != 0) {
          for (Scanner scanner : scanners) {
View Full Code Here

   * <p>by default, resources are collected from all urls that contains the package META-INF/reflections
   * and includes files matching the pattern .*-reflections.xml
   */
  public static Reflections collect() {
    return new Reflections(new ConfigurationBuilder()).
        collect("META-INF/reflections", new FilterBuilder().include(".*-reflections.xml"));
  }
View Full Code Here

      // 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

      // 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

      // 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

            addUrls(ClasspathHelper.forClass((Class) urlHint));
            prefixes.add(((Class) urlHint).getPackage().getName());
          }
        }

        final FilterBuilder filter = new FilterBuilder();
        for (String prefix : prefixes) {
          filter.include(FilterBuilder.prefix(prefix));
        }
        filterInputsBy(filter);

        if (scanners != null && scanners.length != 0) {
          for (Scanner scanner : scanners) {
View Full Code Here

   * <p>by default, resources are collected from all urls that contains the package META-INF/reflections
   * and includes files matching the pattern .*-reflections.xml
   */
  public static Reflections collect() {
    return new Reflections(new ConfigurationBuilder()).
        collect("META-INF/reflections", new FilterBuilder().include(".*-reflections.xml"));
  }
View Full Code Here

    // Now get all files in the message bundle (all localized versions)
    final Collection<URL> scannableUrls = getScannableUrls(bundleAnnotatedClasses);
    log.info("Preparing to scan for i18n bundle files.");
    MessageBundleScanner scanner = new MessageBundleScanner(
            new ConfigurationBuilder()
                .filterInputsBy(new FilterBuilder().include(".*json"))
                .setUrls(scannableUrls)
                .setScanners(new MessageBundleResourceScanner(bundlePaths)));

    // For each one, generate the code to load the translation and put that generated
    // code in the c'tor of the generated class (GeneratedTranslationService)
View Full Code Here

TOP

Related Classes of org.jboss.errai.reflections.util.FilterBuilder$Include

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.