org.directwebremoting.util
Class ClasspathScanner

java.lang.Object
  extended by org.directwebremoting.util.ClasspathScanner

public class ClasspathScanner
extends java.lang.Object

ClasspathScanner enables you to find the set of classes that match some package name. The search can be recursive.

Author:
Jose Noheda [jose.noheda at gmail dot com], Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
ClasspathScanner()
          Attempt to find all classes in the VM
ClasspathScanner(java.lang.String packageName)
          Non recursively find classes within the given package
ClasspathScanner(java.lang.String packageName, boolean recursive)
          Find classes within the given package (optionally recursively)
 
Method Summary
 java.util.Set<java.lang.String> getClasses()
          Get the list of classes available to the classloader
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClasspathScanner

public ClasspathScanner()
Attempt to find all classes in the VM


ClasspathScanner

public ClasspathScanner(java.lang.String packageName)
Non recursively find classes within the given package

Parameters:
packageName - package name specified with dot separators

ClasspathScanner

public ClasspathScanner(java.lang.String packageName,
                        boolean recursive)
Find classes within the given package (optionally recursively)

Parameters:
packageName - package name specified with dot separator
recursive - True to dig into sub-packages
Method Detail

getClasses

public java.util.Set<java.lang.String> getClasses()
Get the list of classes available to the classloader


Copyright 2008