public class DiscoveryUtils extends Object
Modifier and Type | Method and Description |
---|---|
static List<Class> |
getClassesInPackage(String packageName)
Scans all classes accessible from the context class loader
which belong to the given package and sub-packages.
|
static List<Class> |
getClassesInPackage(String packageName,
Class filter)
Scans all classes accessible from the context class loader
which belong to the given package and sub-packages and filter
them by ones implementing the specified interface
iface . |
public static List<Class> getClassesInPackage(String packageName)
packageName
- the root package.IOException
public static List<Class> getClassesInPackage(String packageName, Class filter)
iface
.packageName
- the root package.filter
- the interface/class filter.Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.