public class AutoClassDiscovery extends Object
CLASS_LIST
as resource stream.Modifier and Type | Field and Description |
---|---|
protected static Map<String,String[]> |
cachedClassNames |
static String |
CLASS_LIST |
protected static nz.ac.waikato.cms.locator.ClassCache |
m_Cache |
Constructor and Description |
---|
AutoClassDiscovery() |
Modifier and Type | Method and Description |
---|---|
static Class[] |
findClassesOfType(String packageNameToSearch,
Class<?> typeDesired) |
static String[] |
findClassNames(String packageNameToSearch) |
static List<String> |
getAllClassNames()
Returns all class names stored in the cache.
|
static boolean |
hasEmptyConstructor(Class<?> type) |
protected static void |
initCache()
Initializes the class cache
|
static boolean |
isPublicConcreteClassOfType(String className,
Class<?> typeDesired) |
static void |
main(String[] args)
Outputs all class names below "moa" either to stdout or to the
file provided as first argument.
|
protected static nz.ac.waikato.cms.locator.ClassCache m_Cache
public static final String CLASS_LIST
protected static void initCache()
public static List<String> getAllClassNames()
public static Class[] findClassesOfType(String packageNameToSearch, Class<?> typeDesired)
public static boolean isPublicConcreteClassOfType(String className, Class<?> typeDesired)
public static boolean hasEmptyConstructor(Class<?> type)
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.