Forge - Addon Container 2.0.0.Alpha3

org.jboss.forge.container.modules
Class ModularFileSystemURLHandler

java.lang.Object
  extended by org.jboss.forge.container.modules.ModularFileSystemURLHandler

public class ModularFileSystemURLHandler
extends Object

This class provides file-system orientated scanning

Author:
Pete Muir, Lincoln Baxter, III

Constructor Summary
ModularFileSystemURLHandler(org.jboss.weld.resources.spi.ResourceLoader resourceLoader)
           
 
Method Summary
static String filenameToClassname(String filename)
          Convert a path to a class file to a class name
 void handle(Collection<String> paths, List<String> discoveredClasses, List<URL> discoveredBeansXmlUrls)
           
protected  void handle(String name, URL url, List<String> discoveredClasses, List<URL> discoveredBeansXmlUrls)
           
protected  void handleDirectory(File file, String path, List<String> discoveredClasses, List<URL> discoveredBeansXmlUrls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModularFileSystemURLHandler

public ModularFileSystemURLHandler(org.jboss.weld.resources.spi.ResourceLoader resourceLoader)
Method Detail

handle

public void handle(Collection<String> paths,
                   List<String> discoveredClasses,
                   List<URL> discoveredBeansXmlUrls)

handleDirectory

protected void handleDirectory(File file,
                               String path,
                               List<String> discoveredClasses,
                               List<URL> discoveredBeansXmlUrls)

handle

protected void handle(String name,
                      URL url,
                      List<String> discoveredClasses,
                      List<URL> discoveredBeansXmlUrls)

filenameToClassname

public static String filenameToClassname(String filename)
Convert a path to a class file to a class name


Forge - Addon Container 2.0.0.Alpha3

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.