public class ClassBasedAutoOperateAnnotatedElementResolver extends AbstractAutoOperateAnnotatedElementResolver
A handler that resolve the AutoOperate annotation
on the Class to AutoOperateAnnotatedElement.
Compared to MethodBasedAutoOperateAnnotatedElementResolver,
this resolver can only resolve the static type operation,
and support the condition expression.
AutoOperate,
ExpressionEvaluator,
ExpressionContextconfiguration| 构造器和说明 |
|---|
ClassBasedAutoOperateAnnotatedElementResolver(Crane4jGlobalConfiguration configuration,
ExpressionEvaluator expressionEvaluator,
Function<Object,ExpressionContext> contextFactory)
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected @Nullable AutoOperateAnnotatedElement |
createAutoOperateAnnotatedElement(AnnotatedElement element,
AutoOperate annotation,
BeanOperationParser parser,
BeanOperationExecutor executor,
MethodInvoker extractor,
Predicate<? super KeyTriggerOperation> filter)
Create
AutoOperateAnnotatedElement for the element. |
protected MethodInvoker |
resolveExtractor(AnnotatedElement element,
AutoOperate annotation)
Resolve the extractor for
AutoOperate.value(). |
boolean |
support(AnnotatedElement element,
@Nullable AutoOperate annotation)
Whether the resolver supports the element.
|
resolve, resolveFilterpublic ClassBasedAutoOperateAnnotatedElementResolver(Crane4jGlobalConfiguration configuration, ExpressionEvaluator expressionEvaluator, Function<Object,ExpressionContext> contextFactory)
configuration - configurationexpressionEvaluator - expression evaluatorcontextFactory - context factorypublic boolean support(AnnotatedElement element, @Nullable AutoOperate annotation)
element - elementannotation - annotationprotected @Nullable AutoOperateAnnotatedElement createAutoOperateAnnotatedElement(AnnotatedElement element, AutoOperate annotation, BeanOperationParser parser, BeanOperationExecutor executor, MethodInvoker extractor, Predicate<? super KeyTriggerOperation> filter)
AutoOperateAnnotatedElement for the element.createAutoOperateAnnotatedElement 在类中 AbstractAutoOperateAnnotatedElementResolverelement - elementannotation - annotationparser - parserexecutor - executorextractor - extractorfilter - filterAutoOperateAnnotatedElementprotected MethodInvoker resolveExtractor(AnnotatedElement element, AutoOperate annotation)
AutoOperate.value().resolveExtractor 在类中 AbstractAutoOperateAnnotatedElementResolverelement - elementannotation - annotationCopyright © 2024. All rights reserved.