de.devsurf.injection.guice.reflections
Class ReflectionsScanner
java.lang.Object
de.devsurf.injection.guice.reflections.ReflectionsScanner
- All Implemented Interfaces:
- ClasspathScanner
public class ReflectionsScanner
- extends Object
- implements ClasspathScanner
ClasspathScanner Implementation which uses the Reflections-API. This
Implementation scans all passed packages multithreaded.
- Author:
- Daniel Manzke
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectionsScanner
@Inject
public ReflectionsScanner(Set<AnnotationListener> listeners,
String... packages)
addAnnotationListener
public void addAnnotationListener(AnnotationListener listener)
- Specified by:
addAnnotationListener in interface ClasspathScanner
removeAnnotationListener
public void removeAnnotationListener(AnnotationListener listener)
- Specified by:
removeAnnotationListener in interface ClasspathScanner
getAnnotationListeners
public List<AnnotationListener> getAnnotationListeners()
- Specified by:
getAnnotationListeners in interface ClasspathScanner
excludePackage
public void excludePackage(String packageName)
- Specified by:
excludePackage in interface ClasspathScanner
includePackage
public void includePackage(String packageName)
- Specified by:
includePackage in interface ClasspathScanner
scan
public void scan()
throws IOException
- Specified by:
scan in interface ClasspathScanner
- Throws:
IOException
Copyright © 2010. All Rights Reserved.