public class SpringAssembleAnnotationResolver extends AssembleAnnotationResolver implements org.springframework.context.EmbeddedValueResolverAware
Extension implementation of AssembleAnnotationResolver,
On the basis of the former, some spring annotations are additionally supported.
Order annotation priority;OrderANNOTATION_KEY_ATTRIBUTE, annotationFinder, annotationType, globalConfiguration, operationComparator| 构造器和说明 |
|---|
SpringAssembleAnnotationResolver(AnnotationFinder annotationFinder,
Crane4jGlobalConfiguration globalConfiguration,
ExpressionEvaluator evaluator,
org.springframework.expression.BeanResolver beanResolver)
Create an operation parser that supports annotation configuration.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected Container<?> |
getContainer(cn.crane4j.annotation.Assemble annotation)
Get container.
|
protected com.google.common.collect.Multimap<AnnotatedElement,cn.crane4j.annotation.Assemble> |
parseAnnotationForFields(Class<?> beanType)
Parse annotation for fields
|
void |
setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver)
Set the StringValueResolver to use for resolving embedded definition values.
|
createAssembleOperation, createAssembleOperation, parseAnnotationForClass, parseAnnotationForElement, parseAssembleOperationHandler, parseGroups, parseKey, parsePropertyMappings, parseSort, resolve, setLazyLoadAssembleContainerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparator, getSortpublic SpringAssembleAnnotationResolver(AnnotationFinder annotationFinder, Crane4jGlobalConfiguration globalConfiguration, ExpressionEvaluator evaluator, org.springframework.expression.BeanResolver beanResolver)
Create an operation parser that supports annotation configuration.
The order of operation configurations is Order.value() or Sorted.getSort() from small to large.
annotationFinder - annotation finderglobalConfiguration - global configurationprotected com.google.common.collect.Multimap<AnnotatedElement,cn.crane4j.annotation.Assemble> parseAnnotationForFields(Class<?> beanType)
parseAnnotationForFields 在类中 StandardAssembleAnnotationResolver<cn.crane4j.annotation.Assemble>beanType - bean typeprotected Container<?> getContainer(cn.crane4j.annotation.Assemble annotation)
getContainer 在类中 AssembleAnnotationResolverannotation - annotationIllegalArgumentException - thrown when the container is nullpublic void setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver)
setEmbeddedValueResolver 在接口中 org.springframework.context.EmbeddedValueResolverAwareresolver - resolverCopyright © 2023. All rights reserved.