Package de.matrixweb.vfs.scanner

Examples of de.matrixweb.vfs.scanner.ResourceLister


    }
  }
 
  private Map<String, BundleInternal> filter(final Map<String, BundleInternal> candidates) {
    Map<String, BundleInternal> filtered = new HashMap<String, OsgiBundleEntry.BundleInternal>();
    for (String selected : new ResourceScanner(new ResourceLister() {
        public Set<String> list(final String path) {
          Set<String> set = new HashSet<String>();
          for (Entry<String, BundleInternal> entry : files.entrySet()) {
            if (entry.getKey().startsWith(path)) {
              set.add(entry.getKey() + (entry.getValue().isDirectory() ? '/' : ""));
View Full Code Here


   * @param includes
   * @param excludes
   */
  public ResourceScanner(final ServletContext servletContext,
      final String[] includes, final String[] excludes) {
    super(new ResourceLister() {
      @Override
      @SuppressWarnings("unchecked")
      public Set<String> list(final String path) {
        return servletContext.getResourcePaths(path);
      }
View Full Code Here

TOP

Related Classes of de.matrixweb.vfs.scanner.ResourceLister

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.