public class DisassembleAnnotationHandler extends Object implements OperationAnnotationHandler
Annotation-based OperationAnnotationHandler implementation
that the construction of operation configuration
by resolving annotations based on Disassemble on classes and attributes.
Disassemble| 限定符和类型 | 字段和说明 |
|---|---|
protected AnnotationFinder |
annotationFinder |
protected Crane4jGlobalConfiguration |
globalConfiguration |
protected Comparator<KeyTriggerOperation> |
operationComparator |
| 构造器和说明 |
|---|
DisassembleAnnotationHandler(AnnotationFinder annotationFinder,
Crane4jGlobalConfiguration globalConfiguration)
Create a
DisassembleAnnotationHandler comparator. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected DisassembleOperation |
createDisassembleOperation(Class<?> type,
AnnotatedElement element,
Disassemble annotation,
BeanOperationParser parser)
Create
DisassembleOperation comparator from annotation. |
protected List<DisassembleOperation> |
parseDisassembleOperations(BeanOperationParser parser,
BeanOperations beanOperations)
Parse assemble operations from
Disassemble annotations on class. |
protected String |
parseKey(AnnotatedElement element,
Disassemble annotation)
Parse operation trigger key from given element and annotation.
|
protected int |
parseSort(AnnotatedElement element,
Disassemble annotation)
Parse sort value from given element and annotation.
|
void |
resolve(BeanOperationParser parser,
BeanOperations beanOperations)
Resolve operations from type
|
protected Collection<Disassemble> |
resolveClassLevelAnnotations(Class<?> beanType)
Parse
Disassemble annotations for class. |
protected Map<Field,Disassemble> |
resolveFieldLevelAnnotations(Class<?> beanType)
Parse
Disassemble annotations for class. |
protected final AnnotationFinder annotationFinder
protected final Crane4jGlobalConfiguration globalConfiguration
protected final Comparator<KeyTriggerOperation> operationComparator
public DisassembleAnnotationHandler(AnnotationFinder annotationFinder, Crane4jGlobalConfiguration globalConfiguration)
Create a DisassembleAnnotationHandler comparator.
The order of operation configurations is Sorted.getSort() from small to large.
annotationFinder - annotation finderglobalConfiguration - global configurationpublic void resolve(BeanOperationParser parser, BeanOperations beanOperations)
resolve 在接口中 OperationAnnotationHandlerparser - parserbeanOperations - bean operations to be handlerprotected List<DisassembleOperation> parseDisassembleOperations(BeanOperationParser parser, BeanOperations beanOperations)
Disassemble annotations on class.parser - parserbeanOperations - operations of current to resolveDisassembleOperationprotected Map<Field,Disassemble> resolveFieldLevelAnnotations(Class<?> beanType)
Disassemble annotations for class.beanType - bean typeDisassembleprotected DisassembleOperation createDisassembleOperation(Class<?> type, AnnotatedElement element, Disassemble annotation, BeanOperationParser parser)
DisassembleOperation comparator from annotation.type - typeannotation - annotationDisassembleOperationprotected int parseSort(AnnotatedElement element, Disassemble annotation)
element - elementannotation - annotationCrane4jGlobalSorter.getSortValue(java.lang.Object, int)protected String parseKey(AnnotatedElement element, Disassemble annotation)
element - elementannotation - annotationprotected Collection<Disassemble> resolveClassLevelAnnotations(Class<?> beanType)
Disassemble annotations for class.beanType - bean typeDisassembleCopyright © 2023. All rights reserved.