T - the target typepublic class AnnotatedHandlerInspector<T> extends Object
T that uses annotations on the target to inspect the
capabilities of the target.| Modifier and Type | Method and Description |
|---|---|
List<MessageHandlingMember<? super T>> |
getHandlers()
Returns a list of detected members of the inspected entity that are capable of handling certain messages.
|
<C> AnnotatedHandlerInspector<C> |
inspect(Class<? extends C> entityType)
Inspect another handler type and register the result to the inspector registry of this inspector.
|
static <T> AnnotatedHandlerInspector<T> |
inspectType(Class<? extends T> handlerType)
Create an inspector for given
handlerType that uses a ClasspathParameterResolverFactory to
resolve method parameters and ClasspathHandlerDefinition to create handlers. |
static <T> AnnotatedHandlerInspector<T> |
inspectType(Class<? extends T> handlerType,
ParameterResolverFactory parameterResolverFactory)
Create an inspector for given
handlerType that uses given parameterResolverFactory to resolve
method parameters. |
static <T> AnnotatedHandlerInspector<T> |
inspectType(Class<? extends T> handlerType,
ParameterResolverFactory parameterResolverFactory,
HandlerDefinition handlerDefinition)
Create an inspector for given
handlerType that uses given parameterResolverFactory to resolve
method parameters and given handlerDefinition to create handlers. |
public static <T> AnnotatedHandlerInspector<T> inspectType(Class<? extends T> handlerType)
handlerType that uses a ClasspathParameterResolverFactory to
resolve method parameters and ClasspathHandlerDefinition to create handlers.T - the handler's typehandlerType - the target handler typepublic static <T> AnnotatedHandlerInspector<T> inspectType(Class<? extends T> handlerType, ParameterResolverFactory parameterResolverFactory)
handlerType that uses given parameterResolverFactory to resolve
method parameters.T - the handler's typehandlerType - the target handler typeparameterResolverFactory - the resolver factory to use during detectionpublic static <T> AnnotatedHandlerInspector<T> inspectType(Class<? extends T> handlerType, ParameterResolverFactory parameterResolverFactory, HandlerDefinition handlerDefinition)
handlerType that uses given parameterResolverFactory to resolve
method parameters and given handlerDefinition to create handlers.T - the handler's typehandlerType - the target handler typeparameterResolverFactory - the resolver factory to use during detectionhandlerDefinition - the handler definition used to create concrete handlerspublic <C> AnnotatedHandlerInspector<C> inspect(Class<? extends C> entityType)
C - the handler's typeentityType - the type of the handler to inspectpublic List<MessageHandlingMember<? super T>> getHandlers()
Copyright © 2010–2018. All rights reserved.