public class DefaultPageHandlerFactory extends Object implements PageHandlerFactory
DefaultPageHandler and sets the method map (pattern => method).| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
protected VaniReflectionUtil |
reflectionUtil |
protected VaniContext |
vaniContext |
| Constructor and Description |
|---|
DefaultPageHandlerFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T> PageHandler<T> |
create(Class<T> handlerClass)
Method for creating wrapper for provided handler class.
|
protected <T> Map<Pattern,Method> |
getMethodMap(Class<T> handlerClass)
This method collects all methods annotated with
UrlMapping and
creates a map between pattern and its method. |
protected org.apache.commons.logging.Log logger
@Autowired protected VaniContext vaniContext
@Autowired protected VaniReflectionUtil reflectionUtil
public <T> PageHandler<T> create(Class<T> handlerClass)
PageHandlerFactorycreate in interface PageHandlerFactoryprotected <T> Map<Pattern,Method> getMethodMap(Class<T> handlerClass)
UrlMapping and
creates a map between pattern and its method. It also include the class
level annotation as prefix for all method level one.handlerClass - Copyright © 2016. All rights reserved.