@Configuration @AutoConfigureAfter(value=GobrsPropertyAutoConfiguration.class) @ConditionalOnProperty(prefix="gobrs.async.config", value="enable", matchIfMissing=true, havingValue="true") @Import(value=com.gobrs.async.core.holder.BeanHolder.class) @ComponentScan(value="com.gobrs.async") public class GobrsAutoConfiguration extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static String |
GOBRS_NAMESPACE
The constant GOBRS_NAMESPACE.
|
| 构造器和说明 |
|---|
GobrsAutoConfiguration()
Instantiates a new Gobrs auto configuration.
|
GobrsAutoConfiguration(GobrsConfig gobrsConfig)
Instantiates a new Gobrs auto configuration.
|
| 限定符和类型 | 方法和说明 |
|---|---|
AsyncTaskExceptionInterceptor |
asyncExceptionInterceptor()
Async com.gobrs.async.exception interceptor async com.gobrs.async.com.gobrs.async.test.task com.gobrs.async.exception interceptor.
|
AsyncTaskPostInterceptor |
asyncTaskPostInterceptor()
Async com.gobrs.async.com.gobrs.async.test.task post interceptor async com.gobrs.async.com.gobrs.async.test.task post interceptor.
|
AsyncTaskPreInterceptor |
asyncTaskPreInterceptor()
Async com.gobrs.async.com.gobrs.async.test.task pre interceptor async com.gobrs.async.com.gobrs.async.test.task pre interceptor.
|
ConfigFactory |
configFactory(GobrsConfig gobrsConfig)
Config factory config factory.
|
ConfigManager |
configManager()
Config cache manager config cache manager.
|
GobrsAsync |
gobrsAsync()
Gobrs async gobrs async.
|
GobrsAsyncThreadPoolFactory |
gobrsAsyncThreadPoolFactory(GobrsConfig gobrsConfig)
Gobrs async thread pool factory gobrs async thread pool factory.
|
BeanHolder |
gobrsSpring()
Gobrs spring bean holder.
|
RuleEngine |
ruleEngine(GobrsConfig gobrsConfig,
GobrsAsync gobrsAsync)
Rule com.gobrs.async.engine com.gobrs.async.rule com.gobrs.async.engine.
|
RulePostProcessor |
ruleEnginePostProcessor(ConfigManager configManager)
Rule com.gobrs.async.engine post processor com.gobrs.async.rule post processor.
|
RuleThermalLoad |
ruleThermalLoading()
Rule thermal loading com.gobrs.async.rule thermal load.
|
TaskFlow |
taskFlow()
Task flow com.gobrs.async.com.gobrs.async.test.task flow.
|
public GobrsAutoConfiguration()
public GobrsAutoConfiguration(GobrsConfig gobrsConfig)
gobrsConfig - the gobrs config@Bean public TaskFlow taskFlow()
@Bean public GobrsAsyncThreadPoolFactory gobrsAsyncThreadPoolFactory(GobrsConfig gobrsConfig)
gobrsConfig - the gobrs config@Bean @ConditionalOnMissingBean(value=com.gobrs.async.core.engine.RuleEngine.class) public RuleEngine ruleEngine(GobrsConfig gobrsConfig, GobrsAsync gobrsAsync)
gobrsConfig - the gobrs configgobrsAsync - the gobrs async@Bean public ConfigFactory configFactory(GobrsConfig gobrsConfig)
gobrsConfig - the gobrs config@ConditionalOnBean(value=com.gobrs.async.core.config.ConfigFactory.class) @Bean public ConfigManager configManager()
@Bean public RulePostProcessor ruleEnginePostProcessor(ConfigManager configManager)
configManager - the config manager@Bean public GobrsAsync gobrsAsync()
@Bean public BeanHolder gobrsSpring()
@Bean @ConditionalOnMissingBean(value=com.gobrs.async.core.callback.AsyncTaskExceptionInterceptor.class) public AsyncTaskExceptionInterceptor asyncExceptionInterceptor()
@Bean @ConditionalOnMissingBean(value=com.gobrs.async.core.callback.AsyncTaskPreInterceptor.class) public AsyncTaskPreInterceptor asyncTaskPreInterceptor()
@Bean @ConditionalOnMissingBean(value=com.gobrs.async.core.callback.AsyncTaskPostInterceptor.class) public AsyncTaskPostInterceptor asyncTaskPostInterceptor()
@Bean public RuleThermalLoad ruleThermalLoading()
Copyright © 2022. All rights reserved.