@Deprecated public class ClasspathScanner extends Object
InterfaceClassScanner
- will search for all class that are assignable
to the interface providedImplementationClassScanner
- will search for all classes that extend a
base typeAnnotationsScanner
- will search for classes with specific
annotations, this can also seach for meta annotationsModifier and Type | Field and Description |
---|---|
static int |
DEFAULT_FLAGS
Deprecated.
|
static int |
INCLUDE_ABSTRACT
Deprecated.
|
static int |
INCLUDE_ANONYMOUS
Deprecated.
|
static int |
INCLUDE_INNER
Deprecated.
|
static int |
INCLUDE_INTERFACE
Deprecated.
|
protected Log |
logger
Deprecated.
logger used by this class
|
Constructor and Description |
---|
ClasspathScanner(ClassLoader classLoader,
String... basepaths)
Deprecated.
|
ClasspathScanner(String... basepaths)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected <T> void |
addClassToSet(Class<T> c,
Set<Class<T>> set,
int flags)
Deprecated.
|
protected ClassScanner |
getScanner(Class<?> clazz)
Deprecated.
Works out the correct scanner based on the class passed in
Note that these could be better architected by breaking out filters into strategy objects, but for now this
suits my needs
|
protected boolean |
hasFlag(int flags,
int flag)
Deprecated.
|
protected Class<?> |
loadClass(String name)
Deprecated.
|
protected <T> Set<Class<T>> |
processFileUrl(URL url,
String basepath,
Class<T> clazz,
int flags)
Deprecated.
|
protected <T> Set<Class<T>> |
processJarUrl(URL url,
String basepath,
Class<T> clazz,
int flags)
Deprecated.
|
<T> Set<Class<T>> |
scanFor(Class<T> clazz)
Deprecated.
|
<T> Set<Class<T>> |
scanFor(Class<T> clazz,
int flags)
Deprecated.
|
public static final int INCLUDE_ABSTRACT
public static final int INCLUDE_INTERFACE
public static final int INCLUDE_INNER
public static final int INCLUDE_ANONYMOUS
public static final int DEFAULT_FLAGS
protected final transient Log logger
public ClasspathScanner(String... basepaths)
public ClasspathScanner(ClassLoader classLoader, String... basepaths)
public <T> Set<Class<T>> scanFor(Class<T> clazz) throws IOException
IOException
public <T> Set<Class<T>> scanFor(Class<T> clazz, int flags) throws IOException
IOException
protected <T> Set<Class<T>> processJarUrl(URL url, String basepath, Class<T> clazz, int flags) throws IOException
IOException
protected boolean hasFlag(int flags, int flag)
protected <T> Set<Class<T>> processFileUrl(URL url, String basepath, Class<T> clazz, int flags) throws IOException
IOException
protected <T> void addClassToSet(Class<T> c, Set<Class<T>> set, int flags)
protected ClassScanner getScanner(Class<?> clazz)
clazz
- the type to scan forAnnotationsScanner
,
InterfaceClassScanner
,
ImplementationClassScanner
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.