Examples of scanArchives()


Examples of org.scannotation.AnnotationDB.scanArchives()

                for (URL url : urls) {
                    logger.fine(url.toString());
                }
            }
            AnnotationDB annotationDB = new AnnotationDB();
            annotationDB.scanArchives(urls);
            entities = annotationDB.getAnnotationIndex().get(Entity.class.getName());
            if (entities != null) {
                for (String entity : entities) {
                    initEntity(entity);
                }
View Full Code Here

Examples of org.scannotation.AnnotationDB.scanArchives()

    db.setScanMethodAnnotations(true);
    db.setScanClassAnnotations(true);

    // let's assume the entire runtime is in the same classpath entry as the
    // int sum aggregator
    db.scanArchives(ClasspathUrlFinder.findClassBase(IntSumAggregator.class));

    for (final URL s : ClasspathUrlFinder.findClassPaths())
      if (s.getPath().endsWith("/"))
        db.scanArchives(s);
View Full Code Here

Examples of org.scannotation.AnnotationDB.scanArchives()

    // int sum aggregator
    db.scanArchives(ClasspathUrlFinder.findClassBase(IntSumAggregator.class));

    for (final URL s : ClasspathUrlFinder.findClassPaths())
      if (s.getPath().endsWith("/"))
        db.scanArchives(s);

    for (final URL url : urls)
      db.scanArchives(url);

    final Map<String, Set<String>> annotationIndex = db.getAnnotationIndex();
View Full Code Here

Examples of org.scannotation.AnnotationDB.scanArchives()

    for (final URL s : ClasspathUrlFinder.findClassPaths())
      if (s.getPath().endsWith("/"))
        db.scanArchives(s);

    for (final URL url : urls)
      db.scanArchives(url);

    final Map<String, Set<String>> annotationIndex = db.getAnnotationIndex();

    for (final String c : annotationIndex.get(AggregatorSpec.class.getCanonicalName()))
      try {
View Full Code Here

Examples of org.scannotation.AnnotationDB.scanArchives()

    }

    private Map<String, Set<String>> scanWebInfClasses(URL webInfClasses) {
        try {
            AnnotationDB db = createAnnotationDB();
            db.scanArchives(webInfClasses);
            return db.getAnnotationIndex();
        } catch (FileNotFoundException e) {
            return Collections.emptyMap();
        } catch (IOException e) {
            throw new ScannerException("Could not scan WEB-INF/classes", e);
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.