de.devsurf.injection.guice.reflections
Class ReflectionsScanner

java.lang.Object
  extended by 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

Constructor Summary
ReflectionsScanner(Set<AnnotationListener> listeners, String... packages)
           
 
Method Summary
 void addAnnotationListener(AnnotationListener listener)
           
 void excludePackage(String packageName)
           
 List<AnnotationListener> getAnnotationListeners()
           
 void includePackage(String packageName)
           
 void removeAnnotationListener(AnnotationListener listener)
           
 void scan()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionsScanner

@Inject
public ReflectionsScanner(Set<AnnotationListener> listeners,
                                 String... packages)
Method Detail

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.