public class ELKIServiceScanner
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
ELKIServiceScanner.DirClassIterator
Class to iterate over a directory tree.
|
Modifier and Type | Field and Description |
---|---|
private static java.lang.ClassLoader |
CLASSLOADER
Class loader
|
static java.lang.String |
FACTORY_POSTFIX
Factory class postfix.
|
private static Logging |
LOG
Class logger
|
private static java.util.List<java.lang.Class<?>> |
MASTER_CACHE
(Non-weak) cache for all "frequently scanned" classes.
|
static java.util.Comparator<java.lang.Class<?>> |
SORT_BY_NAME
Sort classes by their class name.
|
static java.util.Comparator<java.lang.Class<?>> |
SORT_BY_PRIORITY
Comparator to sort classes by priority, then alphabetic.
|
Modifier | Constructor and Description |
---|---|
private |
ELKIServiceScanner()
Static methods only.
|
Modifier and Type | Method and Description |
---|---|
private static int |
classPriority(java.lang.Class<?> o1)
Get the priority of a class, or its outer class.
|
private static int |
comparePackageClass(java.lang.Class<?> o1,
java.lang.Class<?> o2)
Compare two classes, by package name first.
|
private static void |
initialize()
Perform a full (slow) scan for classes.
|
static void |
load(java.lang.Class<?> restrictionClass)
Load classes via linear scanning.
|
static java.util.Iterator<java.lang.Class<?>> |
nonindexedClasses()
Get a list with all classes in the working folder (not including jars!)
|
private static final Logging LOG
private static final java.lang.ClassLoader CLASSLOADER
public static final java.lang.String FACTORY_POSTFIX
private static java.util.List<java.lang.Class<?>> MASTER_CACHE
public static java.util.Comparator<java.lang.Class<?>> SORT_BY_NAME
public static final java.util.Comparator<java.lang.Class<?>> SORT_BY_PRIORITY
public static void load(java.lang.Class<?> restrictionClass)
restrictionClass
- Class to find subclasses for.public static java.util.Iterator<java.lang.Class<?>> nonindexedClasses()
private static void initialize()
private static int comparePackageClass(java.lang.Class<?> o1, java.lang.Class<?> o2)
o1
- First classo2
- Second classprivate static int classPriority(java.lang.Class<?> o1)
o1
- ClassCopyright © 2019 ELKI Development Team. License information.