org.cruxframework.crux.scanner
Class ClassScanner

java.lang.Object
  extended by org.cruxframework.crux.scanner.ClassScanner

public class ClassScanner
extends Object

Author:
Thiago da Rosa de Bustamante

Method Summary
static void initialize()
           
static void initializeScanner()
           
static boolean isInitialized()
          return true if the scanner was already loaded.
static void reset()
           
static Set<String> searchClassesByAnnotation(Class<? extends Annotation> annotationClass)
          Search into the internal index for the set of classes that contains the given annotation.
static Set<String> searchClassesByInterface(Class<?> interfaceClass)
          Search into the internal index for the set of classes that implements the given interface.
static Set<String> searchClassesByInterface(String className, boolean deep)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initialize

public static void initialize()
Parameters:
urls -

reset

public static void reset()

initializeScanner

public static void initializeScanner()

searchClassesByAnnotation

public static Set<String> searchClassesByAnnotation(Class<? extends Annotation> annotationClass)
Search into the internal index for the set of classes that contains the given annotation.

Parameters:
annotationClass -
Returns:

searchClassesByInterface

public static Set<String> searchClassesByInterface(Class<?> interfaceClass)
Search into the internal index for the set of classes that implements the given interface.

Parameters:
annotationClass -
Returns:

searchClassesByInterface

public static Set<String> searchClassesByInterface(String className,
                                                   boolean deep)
Parameters:
className -
deep -
Returns:

isInitialized

public static boolean isInitialized()
return true if the scanner was already loaded.

Returns:


Copyright © 2015. All rights reserved.