de.devsurf.injection.guice.scanner.reflections
Class ReflectionsScanner

java.lang.Object
  extended by de.devsurf.injection.guice.scanner.reflections.ReflectionsScanner
All Implemented Interfaces:
ClasspathScanner

public class ReflectionsScanner
extends java.lang.Object
implements ClasspathScanner

ClasspathScanner Implementation which uses the Reflections-API. This Implementation scans all passed packages multithreaded.

Author:
Daniel Manzke

Constructor Summary
ReflectionsScanner(java.util.Set<AnnotationListener> listeners, java.lang.String... packages)
           
 
Method Summary
 void addAnnotationListener(AnnotationListener listener)
           
 void excludePackage(java.lang.String packageName)
           
 java.util.List<AnnotationListener> getAnnotationListeners()
           
 void includePackage(java.lang.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(java.util.Set<AnnotationListener> listeners,
                                 java.lang.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 java.util.List<AnnotationListener> getAnnotationListeners()
Specified by:
getAnnotationListeners in interface ClasspathScanner

excludePackage

public void excludePackage(java.lang.String packageName)
Specified by:
excludePackage in interface ClasspathScanner

includePackage

public void includePackage(java.lang.String packageName)
Specified by:
includePackage in interface ClasspathScanner

scan

public void scan()
          throws java.io.IOException
Specified by:
scan in interface ClasspathScanner
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.