Package com.sun.jersey.core.spi.scanning

Examples of com.sun.jersey.core.spi.scanning.PackageNamesScanner$ResourcesProvider


     * scanned recursively, including all nested packages.
     *
     * @param packages array of package names
     */
    public void packages(String... packages) {
        config.init(new PackageNamesScanner(checkNotNull(packages)));
    }
View Full Code Here


                b.append('\n').append("  ").append(p);
           
            LOGGER.log(Level.INFO, b.toString());
        }

        init(new PackageNamesScanner(packages));
    }
View Full Code Here

   
    final List<String> entityClasses = Lists.newLinkedList();
    for (String entityPackage : checkNotNull(entityPackages)) {
      @SuppressWarnings("unchecked")
      final AnnotationScannerListener listener = new AnnotationScannerListener(Entity.class);
      final PackageNamesScanner scanner = new PackageNamesScanner(new String[] { entityPackage });
      logger.info("Scanning " + entityPackage + " for entity classes");
      scanner.scan(listener);
      for (Class<?> entityClass : listener.getAnnotatedClasses()) {
        configuration.addAnnotatedClass(entityClass);
        entityClasses.add(entityClass.getCanonicalName());
      }
    }
View Full Code Here

                b.append('\n').append("  ").append(p);
           
            LOGGER.log(Level.INFO, b.toString());
        }

        init(new PackageNamesScanner(packages));
    }
View Full Code Here

            logger.warn("No property defined with name: " + PackagesResourceConfig.PROPERTY_PACKAGES +
                        ", this means that jersey can not find any of your resource/provider classes.");
        } else {
            String[] pkgNames = getElements(new String[]{pkgNamesStr}, ResourceConfig.COMMON_DELIMITERS);
            logger.info("Packages to scan by jersey {}", Arrays.toString(pkgNames));
            init(new PackageNamesScanner(pkgNames));
        }
        Map<String, Object> jerseyProperties = createPropertiesMap();
        setPropertiesAndFeatures(jerseyProperties);
    }
View Full Code Here

TOP

Related Classes of com.sun.jersey.core.spi.scanning.PackageNamesScanner$ResourcesProvider

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.