A - annotation typepublic abstract class AbstractStandardAssembleAnnotationHandler<A extends Annotation> extends AbstractStandardOperationAnnotationHandler<A>
An abstract OperationAnnotationHandler implementation
for resolve assemble operation annotation.
pre-implements the defined the logic of parsing and
constructing AssembleOperation based on standard components.
AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation,
PropertyMappingStrategy| 限定符和类型 | 类和说明 |
|---|---|
static interface |
AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation<A extends Annotation>
Standard annotation
|
static class |
AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotationAdapter<A extends Annotation>
Adapting annotation to
AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation |
AbstractStandardOperationAnnotationHandler.StandardAnnotation<A>, AbstractStandardOperationAnnotationHandler.StandardAnnotationAdapter<A extends Annotation>| 限定符和类型 | 字段和说明 |
|---|---|
protected Crane4jGlobalConfiguration |
globalConfiguration |
annotationFinder, annotationType, operationComparator| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractStandardAssembleAnnotationHandler(Class<A> annotationType,
AnnotationFinder annotationFinder,
@NonNull Comparator<KeyTriggerOperation> operationComparator,
Crane4jGlobalConfiguration globalConfiguration,
PropertyMappingStrategyManager propertyMappingStrategyManager)
Create an
AbstractStandardAssembleAnnotationHandler instance. |
parseAnnotationForClass, parseAnnotationForElement, parseAnnotationForFields, parseAnnotationForMethods, parseGroups, parseId, parseKey, parseSort, resolveprotected final Crane4jGlobalConfiguration globalConfiguration
protected AbstractStandardAssembleAnnotationHandler(Class<A> annotationType, AnnotationFinder annotationFinder, @NonNull Comparator<KeyTriggerOperation> operationComparator, Crane4jGlobalConfiguration globalConfiguration, PropertyMappingStrategyManager propertyMappingStrategyManager)
AbstractStandardAssembleAnnotationHandler instance.annotationType - annotation typeannotationFinder - annotation finderoperationComparator - operation comparatorglobalConfiguration - global configurationpropertyMappingStrategyManager - property mapping strategy managerprotected void doResolve(BeanOperations beanOperations, List<KeyTriggerOperation> operations)
doResolve 在类中 AbstractStandardOperationAnnotationHandler<A extends Annotation>beanOperations - bean operationsoperations - operationsprotected @Nullable AssembleOperation createOperation(BeanOperationParser parser, BeanOperations beanOperations, AbstractStandardOperationAnnotationHandler.StandardAnnotation<A> standardAnnotation)
element and annotationcreateOperation 在类中 AbstractStandardOperationAnnotationHandler<A extends Annotation>parser - bean operation parserbeanOperations - bean operations to resolvestandardAnnotation - standard annotationKeyTriggerOperation instance if element and annotation are resolvable, null otherwiseprotected KeyResolver determineKeyResolver(AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation<A> standardAssembleAnnotation, AssembleOperationHandler operationHandler, AssembleOperation operation)
standardAssembleAnnotation - standard annotationoperationHandler - operation handleroperation - assemble operationprotected abstract String getContainerNamespace(AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation<A> standardAnnotation)
annotation.standardAnnotation - standard annotationContainerContainerManager.canonicalNamespace(java.lang.String, java.lang.String)protected abstract AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation<A> getStandardAnnotation(BeanOperations beanOperations, AnnotatedElement element, A annotation)
getStandardAnnotation 在类中 AbstractStandardOperationAnnotationHandler<A extends Annotation>beanOperations - bean operationselement - elementannotation - annotationAbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation instanceprotected AssembleOperationHandler parseAssembleOperationHandler(AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation<A> standardAnnotation)
AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation.standardAnnotation - standard annotationprotected Set<PropertyMapping> parsePropertyMappings(AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation<A> standardAnnotation, String key)
AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation.standardAnnotation - standard annotationkey - keyprotected Set<PropertyMapping> parsePropToMapping(AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation<A> standardAnnotation, String key)
AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation.getProp().standardAnnotation - standard annotationkey - keyprotected @NonNull PropertyMappingStrategy parserPropertyMappingStrategy(AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation<A> standardAnnotation)
PropertyMappingStrategy instance from given annotation.standardAnnotation - standard annotationPropertyMappingStrategy instanceprotected @Nullable Class<?> parseKeyType(AbstractStandardAssembleAnnotationHandler.StandardAssembleAnnotation<A> standardAnnotation)
standardAnnotation - standard annotationCopyright © 2024. All rights reserved.