Examples of scan()


Examples of org.richfaces.resource.optimizer.resource.scan.ResourcesScanner.scan()

        return result.toURI().toURL();
    }

    private void scanDynamicResources(Collection<VFSRoot> cpFiles, ResourceFactory resourceFactory) throws Exception {
        ResourcesScanner scanner = new DynamicResourcesScanner(cpFiles, resourceFactory);
        scanner.scan();
        foundResources.addAll(scanner.getResources());
    }

    private void scanStaticResources(Collection<VirtualFile> resourceRoots) throws Exception {
        ResourcesScanner scanner = new StaticResourcesScanner(resourceRoots);
View Full Code Here

Examples of org.richfaces.resource.optimizer.resource.scan.impl.DynamicResourcesScanner.scan()

        return result.toURI().toURL();
    }

    private void scanDynamicResources(Collection<VFSRoot> cpFiles, ResourceFactory resourceFactory) throws Exception {
        ResourcesScanner scanner = new DynamicResourcesScanner(cpFiles, resourceFactory);
        scanner.scan();
        foundResources.addAll(scanner.getResources());
    }

    private void scanStaticResources(Collection<VirtualFile> resourceRoots) throws Exception {
        ResourcesScanner scanner = new StaticResourcesScanner(resourceRoots);
View Full Code Here

Examples of org.richfaces.resource.optimizer.resource.scan.impl.ResourceOrderingScanner.scan()

        foundResources.addAll(scanner.getResources());
    }

    private void scanResourceOrdering(Collection<VFSRoot> cpFiles) throws Exception {
        ResourceOrderingScanner scanner = new ResourceOrderingScanner(cpFiles, log);
        scanner.scan();
        resourceOrdering = scanner.getCompleteOrdering();
        resourcesWithKnownOrder = Sets.newLinkedHashSet(scanner.getResources());
    }

    private Collection<VFSRoot> fromUrls(Iterable<URL> urls) throws URISyntaxException, IOException {
View Full Code Here

Examples of org.sonar.api.issue.internal.IssueChangeContext.scan()

  @Test
  public void test_scan_context() throws Exception {
    Date now = new Date();
    IssueChangeContext context = IssueChangeContext.createScan(now);

    assertThat(context.scan()).isTrue();
    assertThat(context.login()).isNull();
    assertThat(context.date()).isEqualTo(now);
  }

  @Test
View Full Code Here

Examples of org.sonatype.nexus.index.NexusIndexer.scan()

        boolean update = cli.hasOption( UPDATE );

        ArtifactScanningListener listener = new IndexerListener( indexingContext, packer, createZip, debug, update );

        indexer.scan( indexingContext, listener, update );
    }

    // Listener

    private static final class IndexerListener
View Full Code Here

Examples of org.springframework.context.annotation.AnnotationConfigApplicationContext.scan()

        for (Class<?> configClass : configClasses) {
            context.register(configClass);
        }
       
        for (String basePackage : basePackages) {
            context.scan(basePackage);
        }
       
        context.refresh();
       
        return context;
View Full Code Here

Examples of org.springframework.context.annotation.ClassPathBeanDefinitionScanner.scan()

    if (!ObjectUtils.isEmpty(this.basePackages)) {
      if (logger.isInfoEnabled()) {
        logger.info("Scanning base packages: [" +
            StringUtils.arrayToCommaDelimitedString(this.basePackages) + "]");
      }
      scanner.scan(this.basePackages);
    }

    String[] configLocations = getConfigLocations();
    if (configLocations != null) {
      for (String configLocation : configLocations) {
View Full Code Here

Examples of org.springframework.web.context.support.AnnotationConfigWebApplicationContext.scan()

  public void contextInitialized(ServletContextEvent sce) {
    final ServletContext ctx = sce.getServletContext();

    final AnnotationConfigWebApplicationContext root = new AnnotationConfigWebApplicationContext();
    root.setServletContext(ctx);
    root.scan("app");
    root.refresh();

    final Dynamic servlet = ctx.addServlet("spring", new DispatcherServlet(root));
    servlet.setLoadOnStartup(1);
    servlet.addMapping("/");
View Full Code Here

Examples of org.switchyard.common.type.classpath.ClasspathScanner.scan()

    private List<Class<?>> scanForRoutes(List<URL> urls) throws IOException {
        AbstractTypeFilter filter = new RouteFilter();
        ClasspathScanner scanner = new ClasspathScanner(filter);

        for (URL url : urls) {
            scanner.scan(url);
        }

        return filter.getMatchedTypes();
    }
View Full Code Here

Examples of org.switchyard.component.bean.config.model.BeanSwitchYardScanner.scan()

        urls.add(new File("./target/test-classes").toURI().toURL());

        ScannerInput<SwitchYardModel> input = new ScannerInput<SwitchYardModel>()
                                                    .setURLs(urls)
                                                    .setExcludePackages(BeanUTConstants.BEAN_SCANNER_BLACK_LIST);
        _scannedModel = scanner.scan(input).getModel();
    }

    @Test
    public void testAnnotationRenameService() throws IOException, ClassNotFoundException {
        List<ComponentModel> components = _scannedModel.getComposite().getComponents();
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.