public class ClasspathScanner extends Object implements Scanner
Scanner
that scans components from runtime
classpath.Constructor and Description |
---|
ClasspathScanner()
Constructs a new
ClasspathScanner and detects the runtime
classpath. |
public ClasspathScanner()
ClasspathScanner
and detects the runtime
classpath.
The runtime classpath is detected according to the following order:
ClasspathScanner
gets the classpath directly from its own search paths.
ClasspathScanner
builds the classpath from
'/WEB-INF/classes' directory and '/WEB-INF/lib/*.jar' files.
ClasspathScanner
builds the classpath from
'java.class.path' system property.
public Collection<Class<?>> scan()
ClasspathScanner
detects the component by the following
conditions:
Component
Stereotype
Deployment
Binding
Scope
ClasspathScanner
returns empty set.scan
in interface Scanner
Scanner.scan()
Copyright © 2011-2014 Eiichiro Uchiumi. All Rights Reserved.