
public class InspectionUtil extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
InspectionUtil.ClassSorter
Sort classes by their class name. 
 | 
(package private) static class  | 
InspectionUtil.DirClassIterator
Class to iterate over a directory tree. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
private static WeakHashMap<Class<?>,List<Class<?>>> | 
CLASS_CACHE
Weak hash map for class lookups 
 | 
private static ClassLoader | 
CLASSLOADER
Class loader 
 | 
private static String[] | 
DEFAULT_IGNORES
Default package ignores. 
 | 
static String | 
FACTORY_POSTFIX
Factory class postfix. 
 | 
private static Logging | 
LOG
Class logger 
 | 
private static List<Class<?>> | 
MASTER_CACHE
(Non-weak) cache for all "frequently scanned" classes. 
 | 
static boolean | 
NONSTATIC_CLASSPATH
If we have a non-static classpath, we do more extensive scanning for user
 extensions. 
 | 
| Constructor and Description | 
|---|
InspectionUtil()  | 
| Modifier and Type | Method and Description | 
|---|---|
static List<Class<?>> | 
cachedFindAllImplementations(Class<?> c)
Cached version of "findAllImplementations". 
 | 
static List<Class<?>> | 
findAllImplementations(Class<?> c,
                      boolean everything)
Find all implementations of a given class in the classpath. 
 | 
static <C> Class<? extends C> | 
findImplementation(Class<? super C> restrictionClass,
                  String value)
Find an implementation of the given interface / super class, given a
 relative class name or alias name. 
 | 
private static List<Class<?>> | 
slowScan()
Perform a full (slow) scan for classes. 
 | 
private static final Logging LOG
private static final ClassLoader CLASSLOADER
private static final String[] DEFAULT_IGNORES
public static final boolean NONSTATIC_CLASSPATH
public static final String FACTORY_POSTFIX
private static WeakHashMap<Class<?>,List<Class<?>>> CLASS_CACHE
public static List<Class<?>> cachedFindAllImplementations(Class<?> c)
c - Class to scan forpublic static List<Class<?>> findAllImplementations(Class<?> c, boolean everything)
c - Class restrictioneverything - include interfaces, abstract and private classespublic static <C> Class<? extends C> findImplementation(Class<? super C> restrictionClass, String value)
restrictionClass - Restriction classvalue - Class name, relative class name, or nickname.null