public abstract class AbstractStandardOperationAnnotationHandler<A extends Annotation> extends Object implements OperationAnnotationHandler
OperationAnnotationHandler implementation.| 限定符和类型 | 类和说明 |
|---|---|
static interface |
AbstractStandardOperationAnnotationHandler.StandardAnnotation<A>
Standard annotation
|
static class |
AbstractStandardOperationAnnotationHandler.StandardAnnotationAdapter<A extends Annotation>
Adapting annotation to
AbstractStandardOperationAnnotationHandler.StandardAnnotation |
| 限定符和类型 | 字段和说明 |
|---|---|
protected AnnotationFinder |
annotationFinder |
protected Class<A> |
annotationType |
protected @NonNull Comparator<KeyTriggerOperation> |
operationComparator |
| 构造器和说明 |
|---|
AbstractStandardOperationAnnotationHandler() |
protected final Class<A extends Annotation> annotationType
protected final AnnotationFinder annotationFinder
protected @NonNull Comparator<KeyTriggerOperation> operationComparator
public AbstractStandardOperationAnnotationHandler()
public void resolve(BeanOperationParser parser, BeanOperations beanOperations)
resolve 在接口中 OperationAnnotationHandlerparser - bean operation parserbeanOperations - bean operations to be handlerprotected abstract void doResolve(BeanOperations beanOperations, List<KeyTriggerOperation> operations)
beanOperations - bean operationsoperations - operationsprotected Set<A> parseAnnotationForElement(AnnotatedElement element)
element - elementprotected Set<A> parseAnnotationForClass(Class<?> beanType)
beanType - bean typeprotected MultiMap<AnnotatedElement,A> parseAnnotationForMethods(Class<?> beanType)
beanType - bean typeprotected MultiMap<AnnotatedElement,A> parseAnnotationForFields(Class<?> beanType)
beanType - bean typeprotected KeyTriggerOperation createOperation(BeanOperationParser parser, BeanOperations beanOperations, AbstractStandardOperationAnnotationHandler.StandardAnnotation<A> standardAnnotation)
element and annotationparser - bean operation parserbeanOperations - bean operations to resolvestandardAnnotation - standard annotationKeyTriggerOperation instance if element and annotation is resolvable, null otherwiseprotected String parseId(AbstractStandardOperationAnnotationHandler.StandardAnnotation<A> standardAnnotation)
AbstractStandardOperationAnnotationHandler.StandardAnnotation.standardAnnotation - standard annotationprotected String parseKey(AbstractStandardOperationAnnotationHandler.StandardAnnotation<A> standardAnnotation)
AbstractStandardOperationAnnotationHandler.StandardAnnotation.standardAnnotation - standard annotationprotected int parseSort(AbstractStandardOperationAnnotationHandler.StandardAnnotation<A> standardAnnotation)
AbstractStandardOperationAnnotationHandler.StandardAnnotation.standardAnnotation - standard annotationprotected Set<String> parseGroups(AbstractStandardOperationAnnotationHandler.StandardAnnotation<A> standardAnnotation)
AbstractStandardOperationAnnotationHandler.StandardAnnotation.standardAnnotation - standard assemble operationprotected abstract AbstractStandardOperationAnnotationHandler.StandardAnnotation<A> getStandardAnnotation(BeanOperations beanOperations, AnnotatedElement element, A annotation)
beanOperations - bean operationselement - elementannotation - annotationAbstractStandardOperationAnnotationHandler.StandardAnnotation instanceCopyright © 2024. All rights reserved.