类 ControllerMethodResolver
java.lang.Object
cn.taketoday.web.handler.method.ControllerMethodResolver
- 从以下版本开始:
- 4.0 2022/11/30 22:33
- 作者:
- Harry Yang
-
字段概要
字段修饰符和类型字段说明static final cn.taketoday.util.ReflectionUtils.MethodFilterMethodFilter that matches@InitBindermethods.private final LinkedHashMap<ControllerAdviceBean,Set<Method>> private final ConcurrentHashMap<HandlerMethod,InvocableHandlerMethod> private final cn.taketoday.logging.Loggerstatic final cn.taketoday.util.ReflectionUtils.MethodFilterMethodFilter that matches@ModelAttributemethods.private final LinkedHashMap<ControllerAdviceBean,Set<Method>> private final ConcurrentHashMap<Class<?>,Set<Method>> private final ResolvableParameterFactoryprivate final Map<Class<?>,SessionAttributesHandler> private final SessionAttributeStore -
构造器概要
构造器构造器说明ControllerMethodResolver(cn.taketoday.context.ApplicationContext context, SessionAttributeStore sessionStore, ResolvableParameterFactory parameterFactory) -
方法概要
修饰符和类型方法说明createHandlerMethod(HandlerMethod handlerMethod) Create aInvocableHandlerMethodfrom the givenHandlerMethoddefinition.private InvocableHandlerMethodcreateHandlerMethod(Object bean, Method method) getBinderMethods(HandlerMethod handlerMethod) getModelAttributeMethods(HandlerMethod handlerMethod) getSessionAttributesHandler(HandlerMethod handlerMethod) Return theSessionAttributesHandlerinstance for the given handler type (nevernull).getSessionAttributesHandler(Class<?> handler) private voidinitControllerAdviceCache(cn.taketoday.context.ApplicationContext context)
-
字段详细资料
-
log
private final cn.taketoday.logging.Logger log -
INIT_BINDER_METHODS
public static final cn.taketoday.util.ReflectionUtils.MethodFilter INIT_BINDER_METHODSMethodFilter that matches@InitBindermethods. -
MODEL_ATTRIBUTE_METHODS
public static final cn.taketoday.util.ReflectionUtils.MethodFilter MODEL_ATTRIBUTE_METHODSMethodFilter that matches@ModelAttributemethods. -
sessionAttributesHandlerCache
-
initBinderCache
-
initBinderAdviceCache
-
modelAttributeCache
-
modelAttributeAdviceCache
-
invocableHandlerMethodMap
-
sessionAttributeStore
-
resolvableParameterFactory
-
-
构造器详细资料
-
ControllerMethodResolver
ControllerMethodResolver(@Nullable cn.taketoday.context.ApplicationContext context, SessionAttributeStore sessionStore, ResolvableParameterFactory parameterFactory)
-
-
方法详细资料
-
initControllerAdviceCache
private void initControllerAdviceCache(cn.taketoday.context.ApplicationContext context) -
getSessionAttributesHandler
Return theSessionAttributesHandlerinstance for the given handler type (nevernull). -
getSessionAttributesHandler
-
getModelAttributeMethods
-
getBinderMethods
- 返回:
- non-null InvocableHandlerMethods
-
createHandlerMethod
Create aInvocableHandlerMethodfrom the givenHandlerMethoddefinition.- 参数:
handlerMethod- theHandlerMethoddefinition- 返回:
- the corresponding
InvocableHandlerMethod(or custom subclass thereof)
-
createHandlerMethod
-