T - annotation typepublic abstract class AbstractAssembleAnnotationHandler<T extends Annotation> extends Object implements OperationAnnotationHandler
An abstract OperationAnnotationHandler implementation
for resolve assemble operation annotation.
pre-implements the defined the logic of parsing and
constructing AssembleOperation based on standard components.
AbstractAssembleAnnotationHandler.StandardAnnotation| 限定符和类型 | 类和说明 |
|---|---|
static interface |
AbstractAssembleAnnotationHandler.StandardAnnotation
Standard annotation
|
static class |
AbstractAssembleAnnotationHandler.StandardAnnotationAdapter
Adapting annotation to
AbstractAssembleAnnotationHandler.StandardAnnotation |
| 限定符和类型 | 字段和说明 |
|---|---|
protected AnnotationFinder |
annotationFinder |
protected Class<T> |
annotationType |
protected Crane4jGlobalConfiguration |
globalConfiguration |
protected Comparator<KeyTriggerOperation> |
operationComparator |
| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractAssembleAnnotationHandler(Class<T> annotationType,
AnnotationFinder annotationFinder,
Comparator<KeyTriggerOperation> operationComparator,
Crane4jGlobalConfiguration globalConfiguration)
Create an
AbstractAssembleAnnotationHandler comparator. |
protected final Class<T extends Annotation> annotationType
protected final AnnotationFinder annotationFinder
protected final Comparator<KeyTriggerOperation> operationComparator
protected final Crane4jGlobalConfiguration globalConfiguration
protected AbstractAssembleAnnotationHandler(Class<T> annotationType, AnnotationFinder annotationFinder, Comparator<KeyTriggerOperation> operationComparator, Crane4jGlobalConfiguration globalConfiguration)
AbstractAssembleAnnotationHandler comparator.annotationType - annotation typeannotationFinder - annotation finderoperationComparator - operation comparatorglobalConfiguration - global configurationpublic void resolve(BeanOperationParser parser, BeanOperations beanOperations)
resolve 在接口中 OperationAnnotationHandlerparser - parserbeanOperations - bean operations to be handlerprotected Set<T> parseAnnotationForElement(AnnotatedElement element)
element - elementprotected Set<T> parseAnnotationForClass(Class<?> beanType)
beanType - bean typeprotected MultiMap<AnnotatedElement,T> parseAnnotationForFields(Class<?> beanType)
beanType - bean typeprotected @Nullable AssembleOperation createAssembleOperation(BeanOperations beanOperations, AnnotatedElement element, T annotation)
element and annotationbeanOperations - bean operations to resolveelement - elementannotation - annotationAssembleOperation comparator if element and annotation is resolvable, null otherwiseprotected AssembleOperation createAssembleOperation(T annotation, int sort, String key, AssembleOperationHandler handler, Set<PropertyMapping> propertyMappings)
annotation, sort, key, assembleOperationHandler and propertyMappingsannotation - annotationsort - sortkey - keyhandler - assemble operation handlerpropertyMappings - property mappingsAssembleOperation comparatorprotected abstract String getContainerNamespace(T annotation)
annotation.annotation - annotationContainerContainerManager.canonicalNamespace(java.lang.String, java.lang.String)protected abstract AbstractAssembleAnnotationHandler.StandardAnnotation getStandardAnnotation(BeanOperations beanOperations, AnnotatedElement element, T annotation)
beanOperations - bean operationselement - elementannotation - annotationAbstractAssembleAnnotationHandler.StandardAnnotation comparatorprotected String parseKey(AnnotatedElement element, AbstractAssembleAnnotationHandler.StandardAnnotation standardAnnotation)
AbstractAssembleAnnotationHandler.StandardAnnotation.element - elementstandardAnnotation - standard annotationprotected AssembleOperationHandler parseAssembleOperationHandler(AnnotatedElement element, AbstractAssembleAnnotationHandler.StandardAnnotation standardAnnotation)
AbstractAssembleAnnotationHandler.StandardAnnotation.element - elementstandardAnnotation - standard annotationprotected Set<PropertyMapping> parsePropertyMappings(AnnotatedElement element, AbstractAssembleAnnotationHandler.StandardAnnotation standardAnnotation, String key)
AbstractAssembleAnnotationHandler.StandardAnnotation.element - elementstandardAnnotation - standard annotationkey - keyprotected int parseSort(AnnotatedElement element, AbstractAssembleAnnotationHandler.StandardAnnotation standardAnnotation)
AbstractAssembleAnnotationHandler.StandardAnnotation.element - elementstandardAnnotation - standard annotationprotected Set<String> parseGroups(AnnotatedElement element, AbstractAssembleAnnotationHandler.StandardAnnotation standardAnnotation)
AbstractAssembleAnnotationHandler.StandardAnnotation.element - elementstandardAnnotation - standard assemble operationCopyright © 2023. All rights reserved.