com.github.lontime.extspring.configuration.CommonAutoConfiguration Maven / Gradle / Ivy
package com.github.lontime.extspring.configuration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.github.lontime.extspring.components.BaseSchedulerComponentExt;
import com.github.lontime.extspring.components.DatasourceComponentExt;
import com.github.lontime.extspring.components.HttpComponentExt;
import com.github.lontime.extspring.components.KafkaComponentExt;
import com.github.lontime.extspring.components.Pac4jComponentExt;
import com.github.lontime.extspring.components.QuartzComponentExt;
import com.github.lontime.extspring.components.RedissonComponentExt;
import com.github.lontime.extspring.components.StartupComponentExt;
/**
* CommonAutoConfiguration.
* @author lontime
* @since 1.0
*/
@Configuration(proxyBeanMethods = false)
public class CommonAutoConfiguration {
@Bean
public StartupComponentExt startupComponentExt() {
return new StartupComponentExt();
}
@Bean
@ConditionalOnClass(name = "com.github.lontime.extdatasource.DatasourceInstance")
public DatasourceComponentExt datasourceComponentExt() {
return new DatasourceComponentExt();
}
@Bean
@ConditionalOnClass(name = "com.github.lontime.extquartz.QuartzInstance")
public QuartzComponentExt quartzComponentExt() {
return new QuartzComponentExt();
}
@Bean
@ConditionalOnClass(name = "com.github.lontime.extpac4j.Pac4jInstance")
public Pac4jComponentExt pac4jComponentExt() {
return new Pac4jComponentExt();
}
@Bean
@ConditionalOnClass(name = "com.github.lontime.exthttp.HttpInstance")
public HttpComponentExt httpComponentExt() {
return new HttpComponentExt();
}
@Bean
@ConditionalOnClass(name = "com.github.lontime.extredisson.RedissonInstance")
public RedissonComponentExt redissonComponentExt() {
return new RedissonComponentExt();
}
@Bean
@ConditionalOnClass(name = "com.github.lontime.extkafka.KafkaInstance")
public KafkaComponentExt kafkaComponentExt() {
return new KafkaComponentExt();
}
@Bean
@ConditionalOnClass(name = "com.github.lontime.base.scheduler.SchedulerInstance")
public BaseSchedulerComponentExt baseSchedulerComponentExt() {
return new BaseSchedulerComponentExt();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy