Examples of scan()


Examples of com.sun.jersey.core.spi.scanning.PackageNamesScanner.scan()

    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

Examples of com.sun.jersey.core.spi.scanning.Scanner.scan()

  public void scan(URLClassLoader classLoader) {
    Scanner scanner = buildScanner(classLoader);

    AnnotationScannerListener listener = new AnnotationScannerListener(ANNOTATIONS);
    scanner.scan(listener);

    for (Class<?> clazz : listener.getAnnotatedClasses()) {
      for (Class<? extends Annotation> annotation : ANNOTATIONS) {
        if (clazz.isAnnotationPresent(annotation)) {
          AnnotationDictionary annotationDictionary = getAnnotationDictionary(annotation);
View Full Code Here

Examples of com.sun.jersey.core.spi.scanning.uri.UriSchemeScanner.scan()


    private void scan(final URI u, final ScannerListener cfl) {
        final UriSchemeScanner ss = scanners.get(u.getScheme().toLowerCase());
        if (ss != null) {
            ss.scan(u, cfl);
        } else {
            throw new ScannerException("The URI scheme " + u.getScheme() +
                    " of the URI " + u +
                    " is not supported. Package scanning deployment is not" +
                    " supported for such URIs." +
View Full Code Here

Examples of com.sun.jersey.server.impl.container.config.AnnotatedClassScanner.scan()

            LOGGER.log(Level.INFO, b.toString());
        }
       
        AnnotatedClassScanner scanner = new AnnotatedClassScanner(
                Path.class, Provider.class);
        scanner.scan(packages);       
       
        getClasses().addAll(scanner.getMatchingClasses());
       
        if (LOGGER.isLoggable(Level.INFO) && !getClasses().isEmpty()) {
            StringBuilder b = new StringBuilder();
View Full Code Here

Examples of com.sun.tools.internal.xjc.reader.internalizer.DOMForestScanner.scan()

        for( InputSource grammar : opt.getGrammars() ) {
            Document wsdlDom = forest.get( grammar.getSystemId() );

            NodeList schemas = wsdlDom.getElementsByTagNameNS(WellKnownNamespace.XML_SCHEMA,"schema");
            for( int i=0; i<schemas.getLength(); i++ )
                scanner.scan( (Element)schemas.item(i), xsomParser.getParserHandler() );
        }
        return xsomParser.getResult();
    }

    /**
 
View Full Code Here

Examples of com.sun.tools.javac.comp.Lower.BasicFreeVarCollector.scan()

                                    localContext = localContext.prev;
                                }
                            }
                        }
                    };
                    fvc.scan(localCDef);
                }
        }

        /**
         * Method references to local class constructors, may, if the local
View Full Code Here

Examples of com.sun.tools.javac.tree.TreeScanner.scan()

        Parser parser = pfac.newParser(s, false, genEndPos);
        JCTree.JCCompilationUnit tree = parser.compilationUnit();
        log.setEndPosTable(fo, tree.endPositions);

        TreeScanner ts = new LogTester(log, tree.endPositions);
        ts.scan(tree);

        check(log.nerrors, 4, "errors");
        check(log.nwarnings, 4, "warnings");
    }
View Full Code Here

Examples of com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan()

        for( InputSource grammar : opt.getGrammars() ) {
            Document wsdlDom = forest.get( grammar.getSystemId() );

            NodeList schemas = wsdlDom.getElementsByTagNameNS(WellKnownNamespace.XML_SCHEMA,"schema");
            for( int i=0; i<schemas.getLength(); i++ )
                scanner.scan( (Element)schemas.item(i), xsomParser.getParserHandler() );
        }
        return xsomParser.getResult();
    }
   
    /**
 
View Full Code Here

Examples of com.sun.xml.bind.unmarshaller.DOMScanner.scan()

    public void writeTo(ContentHandler contentHandler, ErrorHandler errorHandler) throws SAXException {
        String soapNsUri = soapVersion.nsUri;
        if (!parsedMessage) {
            DOMScanner ds = new DOMScanner();
            ds.setContentHandler(contentHandler);
            ds.scan(sm.getSOAPPart());
        } else {
            contentHandler.setDocumentLocator(NULL_LOCATOR);
            contentHandler.startDocument();
            contentHandler.startPrefixMapping("S", soapNsUri);
            startPrefixMapping(contentHandler, envelopeAttrs,"S");
View Full Code Here

Examples of com.sun.xml.internal.bind.unmarshaller.DOMScanner.scan()

    public void writeTo(ContentHandler contentHandler, ErrorHandler errorHandler) throws SAXException {
        String soapNsUri = soapVersion.nsUri;
        if (!parsedMessage) {
            DOMScanner ds = new DOMScanner();
            ds.setContentHandler(contentHandler);
            ds.scan(sm.getSOAPPart());
        } else {
            contentHandler.setDocumentLocator(NULL_LOCATOR);
            contentHandler.startDocument();
            contentHandler.startPrefixMapping("S", soapNsUri);
            contentHandler.startElement(soapNsUri, "Envelope", "S:Envelope", EMPTY_ATTS);
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.