@EnableAspectJAutoProxy @EnableConfigurationProperties(value=Crane4jProperties.class) public class Crane4jAutoConfiguration extends Object
The automatic configuration class of crane.
Inject the current configuration class into the Spring container,
or make it effective directly through EnableCrane4j annotation,
which will automatically assemble various components required by the crane runtime.
| 构造器和说明 |
|---|
Crane4jAutoConfiguration() |
@Primary @Bean @ConditionalOnMissingBean public Crane4jApplicationContext crane4jApplicationContext(org.springframework.context.ApplicationContext applicationContext)
@Bean @ConditionalOnMissingBean public PropertyOperator propertyOperator(Crane4jProperties crane4jProperties)
@Bean @ConditionalOnMissingBean public AnnotationFinder annotationFinder()
@Bean @ConditionalOnMissingBean public TypeResolver typeResolver()
@Bean @ConditionalOnMissingBean public ExpressionEvaluator expressionEvaluator()
@Bean @ConditionalOnMissingBean public CacheManager cacheManager()
@Bean @ConditionalOnMissingBean @ConditionalOnBean(value=cn.crane4j.core.cache.CacheManager.class) public DefaultCacheableContainerProcessor cacheableContainerRegistrar(CacheManager cacheManager, Crane4jProperties crane4jProperties)
@Bean @ConditionalOnMissingBean public ContainerRegisteredLogger containerRegisteredLogger()
@Primary @Bean @ConditionalOnMissingBean public SpringAnnotationAwareBeanOperationParser springAnnotationAwareBeanOperationParser(AnnotationFinder annotationFinder, Crane4jGlobalConfiguration configuration, ExpressionEvaluator evaluator, org.springframework.context.ApplicationContext applicationContext)
@Primary @Bean @ConditionalOnMissingBean public DisorderedBeanOperationExecutor disorderedBeanOperationExecutor()
@Bean @ConditionalOnMissingBean public OrderedBeanOperationExecutor orderedBeanOperationExecutor()
@Order @Bean public DefaultMethodContainerFactory defaultMethodContainerFactory(PropertyOperator propertyOperator, AnnotationFinder annotationFinder)
@Order(value=2147483646) @Bean @ConditionalOnBean(value=cn.crane4j.core.cache.CacheManager.class) public CacheableMethodContainerFactory cacheableMethodContainerFactory(CacheManager cacheManager, PropertyOperator propertyOperator, AnnotationFinder annotationFinder)
@Primary @Bean public OneToOneReflexAssembleOperationHandler oneToOneReflexAssembleOperationHandler(PropertyOperator propertyOperator)
@Bean public ManyToManyReflexAssembleOperationHandler manyToManyReflexAssembleOperationHandler(PropertyOperator propertyOperator)
@Bean public OneToManyReflexAssembleOperationHandler oneToManyReflexAssembleOperationHandler(PropertyOperator propertyOperator)
@Primary @Bean @ConditionalOnMissingBean public ReflectDisassembleOperationHandler reflectDisassembleOperationHandler(PropertyOperator propertyOperator)
@Bean @ConditionalOnMissingBean public OperateTemplate operateTemplate(AnnotationAwareBeanOperationParser parser, DisorderedBeanOperationExecutor executor, TypeResolver typeResolver)
@Bean @ConditionalOnMissingBean public org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer()
@Bean @ConditionalOnMissingBean public AutoOperateMethodAnnotatedElementResolver autoOperateMethodAnnotatedElementResolver(Crane4jGlobalConfiguration crane4jGlobalConfiguration)
@Bean @ConditionalOnMissingBean public ResolvableExpressionEvaluator resolvableExpressionEvaluator(org.springframework.context.ApplicationContext applicationContext, ExpressionEvaluator expressionEvaluator, org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer)
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(prefix="crane4j",
name="enable-method-result-auto-operate",
havingValue="true",
matchIfMissing=true)
public MethodResultAutoOperateAspect methodResultAutoOperateAspect(AutoOperateMethodAnnotatedElementResolver autoOperateMethodAnnotatedElementResolver,
ResolvableExpressionEvaluator resolvableExpressionEvaluator)
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(prefix="crane4j",
name="enable-method-argument-auto-operate",
havingValue="true",
matchIfMissing=true)
public MethodArgumentAutoOperateAspect methodArgumentAutoOperateAspect(MethodBaseExpressionExecuteDelegate methodBaseExpressionExecuteDelegate,
AutoOperateMethodAnnotatedElementResolver autoOperateMethodAnnotatedElementResolver,
org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer,
AnnotationFinder annotationFinder)
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(prefix="crane4j",
name="enable-method-container",
havingValue="true",
matchIfMissing=true)
public AnnotationMethodContainerPostProcessor annotationMethodContainerPostProcessor(AnnotationFinder annotationFinder,
Collection<MethodContainerFactory> factories,
Crane4jGlobalConfiguration configuration)
Copyright © 2023. All rights reserved.