@EnableAspectJAutoProxy @EnableConfigurationProperties(value=Crane4jAutoConfiguration.Properties.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.
cn.crane4j.extension.spring| 限定符和类型 | 类和说明 |
|---|---|
static class |
Crane4jAutoConfiguration.Crane4jInitializer
The default initializer is used to initialize some caches or components after the application is started.
|
static class |
Crane4jAutoConfiguration.InitializationLogger
Initialization logger.
|
static class |
Crane4jAutoConfiguration.Properties
Configurable properties.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CRANE_PREFIX |
| 构造器和说明 |
|---|
Crane4jAutoConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
cn.crane4j.core.support.AnnotationFinder |
annotationFinder() |
cn.crane4j.core.support.aop.AutoOperateMethodAnnotatedElementResolver |
autoOperateMethodAnnotatedElementResolver(cn.crane4j.core.support.Crane4jGlobalConfiguration crane4jGlobalConfiguration) |
org.springframework.expression.BeanResolver |
beanFactoryResolver(org.springframework.context.ApplicationContext applicationContext) |
cn.crane4j.core.support.callback.DefaultCacheableContainerProcessor |
cacheableContainerRegistrar(cn.crane4j.core.cache.CacheManager cacheManager,
Crane4jAutoConfiguration.Properties properties) |
cn.crane4j.core.support.container.CacheableMethodContainerFactory |
cacheableMethodContainerFactory(cn.crane4j.core.cache.CacheManager cacheManager,
cn.crane4j.core.support.reflect.PropertyOperator propertyOperator,
cn.crane4j.core.support.AnnotationFinder annotationFinder) |
cn.crane4j.core.cache.CacheManager |
cacheManager() |
cn.crane4j.core.support.callback.ContainerRegisteredLogger |
containerRegisteredLogger() |
Crane4jApplicationContext |
crane4jApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
Crane4jAutoConfiguration.Crane4jInitializer |
crane4jInitializer(org.springframework.core.type.classreading.MetadataReaderFactory readerFactory,
org.springframework.core.io.support.ResourcePatternResolver resolver,
org.springframework.context.ApplicationContext applicationContext,
cn.crane4j.core.support.AnnotationFinder annotationFinder,
cn.crane4j.core.support.Crane4jGlobalConfiguration configuration,
Crane4jAutoConfiguration.Properties properties) |
cn.crane4j.core.support.container.DefaultMethodContainerFactory |
defaultMethodContainerFactory(cn.crane4j.core.support.reflect.PropertyOperator propertyOperator,
cn.crane4j.core.support.AnnotationFinder annotationFinder) |
cn.crane4j.core.parser.DisassembleAnnotationOperationsResolver |
disassembleAnnotationOperationsResolver(cn.crane4j.core.support.AnnotationFinder annotationFinder,
cn.crane4j.core.support.Crane4jGlobalConfiguration configuration) |
cn.crane4j.core.executor.DisorderedBeanOperationExecutor |
disorderedBeanOperationExecutor() |
cn.crane4j.core.support.expression.ExpressionEvaluator |
expressionEvaluator() |
Crane4jAutoConfiguration.InitializationLogger |
initializationLogger() |
cn.crane4j.core.executor.handler.ManyToManyReflexAssembleOperationHandler |
manyToManyReflexAssembleOperationHandler(cn.crane4j.core.support.reflect.PropertyOperator propertyOperator) |
MergedAnnotationMethodContainerPostProcessor |
mergedAnnotationMethodContainerPostProcessor(Collection<cn.crane4j.core.support.container.MethodContainerFactory> factories,
cn.crane4j.core.support.Crane4jGlobalConfiguration configuration) |
MethodArgumentAutoOperateAspect |
methodArgumentAutoOperateAspect(cn.crane4j.core.support.expression.MethodBaseExpressionExecuteDelegate methodBaseExpressionExecuteDelegate,
cn.crane4j.core.support.aop.AutoOperateMethodAnnotatedElementResolver autoOperateMethodAnnotatedElementResolver,
org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer,
cn.crane4j.core.support.AnnotationFinder annotationFinder) |
MethodResultAutoOperateAspect |
methodResultAutoOperateAspect(cn.crane4j.core.support.aop.AutoOperateMethodAnnotatedElementResolver autoOperateMethodAnnotatedElementResolver,
ResolvableExpressionEvaluator resolvableExpressionEvaluator) |
cn.crane4j.core.executor.handler.OneToManyReflexAssembleOperationHandler |
oneToManyReflexAssembleOperationHandler(cn.crane4j.core.support.reflect.PropertyOperator propertyOperator) |
cn.crane4j.core.executor.handler.OneToOneReflexAssembleOperationHandler |
oneToOneReflexAssembleOperationHandler(cn.crane4j.core.support.reflect.PropertyOperator propertyOperator) |
cn.crane4j.core.support.OperateTemplate |
operateTemplate(cn.crane4j.core.parser.BeanOperationParser parser,
cn.crane4j.core.executor.DisorderedBeanOperationExecutor executor,
cn.crane4j.core.support.TypeResolver typeResolver) |
cn.crane4j.core.executor.OrderedBeanOperationExecutor |
orderedBeanOperationExecutor() |
org.springframework.core.ParameterNameDiscoverer |
parameterNameDiscoverer() |
cn.crane4j.core.support.reflect.PropertyOperator |
propertyOperator(Crane4jAutoConfiguration.Properties properties) |
cn.crane4j.core.executor.handler.ReflectDisassembleOperationHandler |
reflectDisassembleOperationHandler(cn.crane4j.core.support.reflect.PropertyOperator propertyOperator) |
ResolvableExpressionEvaluator |
resolvableExpressionEvaluator(cn.crane4j.core.support.expression.ExpressionEvaluator expressionEvaluator,
org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer,
org.springframework.expression.BeanResolver beanResolver) |
SpringAssembleAnnotationOperationsResolver |
springAnnotationOperationsResolver(cn.crane4j.core.support.AnnotationFinder annotationFinder,
cn.crane4j.core.support.Crane4jGlobalConfiguration configuration,
cn.crane4j.core.support.expression.ExpressionEvaluator evaluator,
org.springframework.expression.BeanResolver beanResolver) |
cn.crane4j.core.parser.BeanOperationParser |
typeHierarchyBeanOperationParser(Collection<cn.crane4j.core.parser.BeanOperationsResolver> resolvers) |
cn.crane4j.core.support.TypeResolver |
typeResolver() |
@Primary @Bean @ConditionalOnMissingBean public Crane4jApplicationContext crane4jApplicationContext(org.springframework.context.ApplicationContext applicationContext)
@Bean @ConditionalOnMissingBean public cn.crane4j.core.support.reflect.PropertyOperator propertyOperator(Crane4jAutoConfiguration.Properties properties)
@Bean @ConditionalOnMissingBean public cn.crane4j.core.support.AnnotationFinder annotationFinder()
@Bean @ConditionalOnMissingBean public cn.crane4j.core.support.TypeResolver typeResolver()
@Bean @ConditionalOnMissingBean public cn.crane4j.core.support.expression.ExpressionEvaluator expressionEvaluator()
@Bean @ConditionalOnMissingBean public cn.crane4j.core.cache.CacheManager cacheManager()
@Bean
@ConditionalOnMissingBean
@ConditionalOnBean(value=cn.crane4j.core.cache.CacheManager.class)
public cn.crane4j.core.support.callback.DefaultCacheableContainerProcessor cacheableContainerRegistrar(cn.crane4j.core.cache.CacheManager cacheManager,
Crane4jAutoConfiguration.Properties properties)
@Bean @ConditionalOnMissingBean public cn.crane4j.core.support.callback.ContainerRegisteredLogger containerRegisteredLogger()
@Bean @ConditionalOnMissingBean public org.springframework.expression.BeanResolver beanFactoryResolver(org.springframework.context.ApplicationContext applicationContext)
@Bean @ConditionalOnMissingBean public SpringAssembleAnnotationOperationsResolver springAnnotationOperationsResolver(cn.crane4j.core.support.AnnotationFinder annotationFinder, cn.crane4j.core.support.Crane4jGlobalConfiguration configuration, cn.crane4j.core.support.expression.ExpressionEvaluator evaluator, org.springframework.expression.BeanResolver beanResolver)
@Bean
@ConditionalOnMissingBean
public cn.crane4j.core.parser.DisassembleAnnotationOperationsResolver disassembleAnnotationOperationsResolver(cn.crane4j.core.support.AnnotationFinder annotationFinder,
cn.crane4j.core.support.Crane4jGlobalConfiguration configuration)
@Bean @ConditionalOnMissingBean public cn.crane4j.core.parser.BeanOperationParser typeHierarchyBeanOperationParser(Collection<cn.crane4j.core.parser.BeanOperationsResolver> resolvers)
@Primary @Bean @ConditionalOnMissingBean public cn.crane4j.core.executor.DisorderedBeanOperationExecutor disorderedBeanOperationExecutor()
@Bean @ConditionalOnMissingBean public cn.crane4j.core.executor.OrderedBeanOperationExecutor orderedBeanOperationExecutor()
@Order
@Bean
public cn.crane4j.core.support.container.DefaultMethodContainerFactory defaultMethodContainerFactory(cn.crane4j.core.support.reflect.PropertyOperator propertyOperator,
cn.crane4j.core.support.AnnotationFinder annotationFinder)
@Order(value=2147483646)
@Bean
@ConditionalOnBean(value=cn.crane4j.core.cache.CacheManager.class)
public cn.crane4j.core.support.container.CacheableMethodContainerFactory cacheableMethodContainerFactory(cn.crane4j.core.cache.CacheManager cacheManager,
cn.crane4j.core.support.reflect.PropertyOperator propertyOperator,
cn.crane4j.core.support.AnnotationFinder annotationFinder)
@Primary @Bean public cn.crane4j.core.executor.handler.OneToOneReflexAssembleOperationHandler oneToOneReflexAssembleOperationHandler(cn.crane4j.core.support.reflect.PropertyOperator propertyOperator)
@Bean public cn.crane4j.core.executor.handler.ManyToManyReflexAssembleOperationHandler manyToManyReflexAssembleOperationHandler(cn.crane4j.core.support.reflect.PropertyOperator propertyOperator)
@Bean public cn.crane4j.core.executor.handler.OneToManyReflexAssembleOperationHandler oneToManyReflexAssembleOperationHandler(cn.crane4j.core.support.reflect.PropertyOperator propertyOperator)
@Primary @Bean @ConditionalOnMissingBean public cn.crane4j.core.executor.handler.ReflectDisassembleOperationHandler reflectDisassembleOperationHandler(cn.crane4j.core.support.reflect.PropertyOperator propertyOperator)
@Bean
@ConditionalOnMissingBean
public cn.crane4j.core.support.OperateTemplate operateTemplate(cn.crane4j.core.parser.BeanOperationParser parser,
cn.crane4j.core.executor.DisorderedBeanOperationExecutor executor,
cn.crane4j.core.support.TypeResolver typeResolver)
@Bean @ConditionalOnMissingBean public org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer()
@Bean @ConditionalOnMissingBean public cn.crane4j.core.support.aop.AutoOperateMethodAnnotatedElementResolver autoOperateMethodAnnotatedElementResolver(cn.crane4j.core.support.Crane4jGlobalConfiguration crane4jGlobalConfiguration)
@Bean @ConditionalOnMissingBean public ResolvableExpressionEvaluator resolvableExpressionEvaluator(cn.crane4j.core.support.expression.ExpressionEvaluator expressionEvaluator, org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer, org.springframework.expression.BeanResolver beanResolver)
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(prefix="crane4j",
name="enable-method-result-auto-operate",
havingValue="true",
matchIfMissing=true)
public MethodResultAutoOperateAspect methodResultAutoOperateAspect(cn.crane4j.core.support.aop.AutoOperateMethodAnnotatedElementResolver autoOperateMethodAnnotatedElementResolver,
ResolvableExpressionEvaluator resolvableExpressionEvaluator)
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(prefix="crane4j",
name="enable-method-argument-auto-operate",
havingValue="true",
matchIfMissing=true)
public MethodArgumentAutoOperateAspect methodArgumentAutoOperateAspect(cn.crane4j.core.support.expression.MethodBaseExpressionExecuteDelegate methodBaseExpressionExecuteDelegate,
cn.crane4j.core.support.aop.AutoOperateMethodAnnotatedElementResolver autoOperateMethodAnnotatedElementResolver,
org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer,
cn.crane4j.core.support.AnnotationFinder annotationFinder)
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(prefix="crane4j",
name="enable-method-container",
havingValue="true",
matchIfMissing=true)
public MergedAnnotationMethodContainerPostProcessor mergedAnnotationMethodContainerPostProcessor(Collection<cn.crane4j.core.support.container.MethodContainerFactory> factories,
cn.crane4j.core.support.Crane4jGlobalConfiguration configuration)
@Bean @ConditionalOnMissingBean public Crane4jAutoConfiguration.Crane4jInitializer crane4jInitializer(org.springframework.core.type.classreading.MetadataReaderFactory readerFactory, org.springframework.core.io.support.ResourcePatternResolver resolver, org.springframework.context.ApplicationContext applicationContext, cn.crane4j.core.support.AnnotationFinder annotationFinder, cn.crane4j.core.support.Crane4jGlobalConfiguration configuration, Crane4jAutoConfiguration.Properties properties)
@Bean(value="Crane4jAutoConfigurationInitializationLogger") public Crane4jAutoConfiguration.InitializationLogger initializationLogger()
Copyright © 2023. All rights reserved.