public interface OperationAnnotationHandler extends Sorted
A handler that resolves AssembleOperation or DisassembleOperation
from annotation on the element to BeanOperations.getSource().
Generally, a handler typically only resolve one or two specific annotations from the element,
for example, AssembleAnnotationHandler resolve AssembleOperation from the element.
TypeHierarchyBeanOperationParser will hold multiple resolvers to resolve different annotations.
For implementors of assemble operation annotation handler,
it is recommended to derive from the provided AbstractAssembleAnnotationHandler class,
which pre-implements the defined the logic of parsing and
constructing AssembleOperation based on standard components.
AbstractAssembleAnnotationHandler,
TypeHierarchyBeanOperationParser| 限定符和类型 | 方法和说明 |
|---|---|
void |
resolve(BeanOperationParser parser,
BeanOperations beanOperations)
Resolve operations from type.
|
void resolve(BeanOperationParser parser, BeanOperations beanOperations)
parser - parserbeanOperations - bean operations to be handlerCopyright © 2023. All rights reserved.