public class ScanClassUtils
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
private static java.lang.String |
RESOURCE_PATTERN |
private static org.springframework.core.io.support.ResourcePatternResolver |
resourcePatternResolver |
构造器和说明 |
---|
ScanClassUtils() |
限定符和类型 | 方法和说明 |
---|---|
static java.util.List<java.lang.Class<?>> |
getAllAssignedClass(java.lang.Class<?> cls,
java.lang.String[] packages) |
static java.util.Set<java.lang.Class<?>> |
getClasses(java.lang.String[] packagesToScan) |
private static final java.lang.String RESOURCE_PATTERN
private static final org.springframework.core.io.support.ResourcePatternResolver resourcePatternResolver
public static java.util.List<java.lang.Class<?>> getAllAssignedClass(java.lang.Class<?> cls, java.lang.String[] packages) throws java.lang.ClassNotFoundException, java.io.IOException
cls
- packages
- java.io.IOException
java.lang.ClassNotFoundException
public static java.util.Set<java.lang.Class<?>> getClasses(java.lang.String[] packagesToScan) throws java.io.IOException, java.lang.ClassNotFoundException
packagesToScan
- java.io.IOException
java.lang.ClassNotFoundException