Examples of SubTypesScanner


Examples of org.jboss.errai.reflections.scanners.SubTypesScanner

          setScanners(scanners);
        }
        else {
          setScanners(
              new TypeAnnotationsScanner().filterResultsBy(filter),
              new SubTypesScanner().filterResultsBy(filter));
        }
      }
    });
  }
View Full Code Here

Examples of org.jboss.errai.reflections.scanners.SubTypesScanner

          setScanners(scanners);
        }
        else {
          setScanners(
              new TypeAnnotationsScanner().filterResultsBy(filter),
              new SubTypesScanner().filterResultsBy(filter));
        }
      }
    });
  }
View Full Code Here

Examples of org.jboss.errai.reflections.scanners.SubTypesScanner

    private Predicate<String> inputsFilter = Predicates.alwaysTrue();
    private Serializer serializer;
    private ExecutorService executorService;

    public ConfigurationBuilder() {
      final Scanner[] builtins = new Scanner[] {new TypeAnnotationsScanner(), new SubTypesScanner()};
      for (final Scanner scanner : builtins) {
        scanners.put(scanner.getName(), scanner);
      }
    }
View Full Code Here

Examples of org.jboss.errai.reflections.scanners.SubTypesScanner

          setScanners(scanners);
        }
        else {
          setScanners(
              new TypeAnnotationsScanner().filterResultsBy(filter),
              new SubTypesScanner().filterResultsBy(filter));
        }
      }
    });
  }
View Full Code Here

Examples of org.jboss.errai.reflections.scanners.SubTypesScanner

          setScanners(scanners);
        }
        else {
          setScanners(
              new TypeAnnotationsScanner().filterResultsBy(filter),
              new SubTypesScanner().filterResultsBy(filter));
        }
      }
    });
  }
View Full Code Here

Examples of org.reflections.scanners.SubTypesScanner

    public void beforeStart(final Application application) {
        final Reflections reflections = new Reflections(new ConfigurationBuilder()
                .filterInputsBy(new FilterBuilder.Exclude(FilterBuilder.prefix("com.google")))
                .addUrls(ClasspathHelper.forClassLoader(application.classloader()))
                .addScanners(
                        new SubTypesScanner()
                ));

        // automatic Guice module detection
        Set<Class<? extends AbstractModule>> guiceModules = reflections.getSubTypesOf(AbstractModule.class);
        for (Class<? extends Module> moduleClass : guiceModules) {
View Full Code Here

Examples of org.reflections.scanners.SubTypesScanner

    public Iterable<Class<?>> allTypes() {
        return Iterables.filter(
            new Reflections(
                new ConfigurationBuilder()
                    .setScanners(
                        new SubTypesScanner(false),
                        new ResourcesScanner()
                )
                    .setUrls(
                        ClasspathHelper.forClassLoader(
                            ClasspathHelper.contextClassLoader(),
View Full Code Here

Examples of org.reflections.scanners.SubTypesScanner

    @Override
    public <T> Set<Class<? extends T>> findSubTypesOfClasses(Class<T> type) {
        final Reflections reflections = new Reflections(
                ClasspathHelper.forClassLoader(Thread.currentThread().getContextClassLoader()),
                ClasspathHelper.forClass(Object.class),
                new SubTypesScanner(false));
        return reflections.getSubTypesOf(type);
    }
View Full Code Here

Examples of org.reflections.scanners.SubTypesScanner

    public static Set<Class<? extends Structure>> findSubTypesOfStructure(final Class classDeclaredInSourceTreeToSearch) {

        // use: http://code.google.com/p/reflections/

        final Reflections reflections = new Reflections(new ConfigurationBuilder()
                .setScanners(new SubTypesScanner(false /* don't exclude Object.class */), new ResourcesScanner())
                .setUrls(ClasspathHelper.forClass(classDeclaredInSourceTreeToSearch))
        );

        return reflections.getSubTypesOf(Structure.class);
    }
View Full Code Here

Examples of org.reflections.scanners.SubTypesScanner

        Vfs.setDefaultURLTypes(getUrlTypes());

        final Reflections reflections = new Reflections(
                ClasspathHelper.forClassLoader(Thread.currentThread().getContextClassLoader()),
                ClasspathHelper.forClass(Object.class),
                new SubTypesScanner(false)
        );
        return reflections.getSubTypesOf(type);
    }
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.