org.apache.deft.configuration
Class AnnotationsScanner

java.lang.Object
  extended by org.apache.deft.configuration.AnnotationsScanner

public class AnnotationsScanner
extends Object

Provides functionality to retrieve known Annotation types and associated values.


Constructor Summary
AnnotationsScanner()
           
 
Method Summary
 Map<String,RequestHandler> findHandlers(String handlerPackage)
          Recursively iterate the given package, and attempt to resolve all annotated references for RequestHandler implementations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationsScanner

public AnnotationsScanner()
Method Detail

findHandlers

public Map<String,RequestHandler> findHandlers(String handlerPackage)
Recursively iterate the given package, and attempt to resolve all annotated references for RequestHandler implementations.

Parameters:
handlerPackage - the base package to scan, for example "org.apache.deft".
Returns:
a Map<String, RequestHandler> of handlers, which may be empty but not null.


Copyright © 2010-2011. All Rights Reserved.