org.apache.awf.configuration
Class AnnotationsScanner
java.lang.Object
org.apache.awf.configuration.AnnotationsScanner
public class AnnotationsScanner
- extends Object
Provides functionality to retrieve known Annotation types and
associated values.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationsScanner
public AnnotationsScanner()
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.awf".
- Returns:
- a
Map<String, RequestHandler> of handlers,
which may be empty but not null.
Copyright © 2012. All Rights Reserved.