Package org.reflections

Examples of org.reflections.Configuration


   
    Collection<URL> urls = ClasspathHelper.forPackage("play.utils.meta.convert", classloaders);
    if (log.isDebugEnabled())
      log.debug("urls : " + urls);

    Configuration configs = new ConfigurationBuilder().setUrls(
        urls).addClassLoaders(classloaders).setScanners(new SubTypesScanner(false));
   
    final Reflections reflections = new Reflections(configs);

    Map<Class<?>, Converter<?>> map = Maps.newHashMap();
View Full Code Here


      try {
        loaders.add(Thread.currentThread().getContextClassLoader());
      } catch (Exception ex) {
        // ignore
      }
      Configuration config = new ConfigurationBuilder()
        .setUrls(ClasspathHelper.forManifest(ClasspathHelper.forJavaClassPath()))
        .setScanners(new TypeAnnotationsScanner(), new FieldAnnotationsScanner(), new SubTypesScanner(false))
        .filterInputsBy(FilterBuilder.parse(AnnotationReflector.DEFAULT_ANNOTATION_REFLECTOR_FILTER))
        .addClassLoaders(loaders)
        .useParallelExecutor();
View Full Code Here

  }
 
  @SuppressWarnings("rawtypes")
  static List<IConvertibleFactory> createFactories(String prefix) throws Exception {
    List<IConvertibleFactory> factories = new LinkedList<IConvertibleFactory>();
    Configuration config = getConfig(prefix);
    Reflections reflections = new Reflections(config);
    Set<Class<? extends IConvertibleFactory>> factoryTypes = reflections.getSubTypesOf(IConvertibleFactory.class);
    for (Class<? extends IConvertibleFactory> factoryType : factoryTypes) {
      log.debug(factoryType);
      IConvertibleFactory factory = factoryType.newInstance();
View Full Code Here

TOP

Related Classes of org.reflections.Configuration

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.