
software.crldev.elrondspringbootstarterreactive.ErdClientAutoConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elrond-spring-boot-starter-reactive Show documentation
Show all versions of elrond-spring-boot-starter-reactive Show documentation
A SpringBoot Starter solution designed to ensure easy and efficient integration with the Elrond Network using a Reactive API layer.
The newest version!
package software.crldev.elrondspringbootstarterreactive;
import software.crldev.elrondspringbootstarterreactive.client.ErdProxyClient;
import software.crldev.elrondspringbootstarterreactive.client.ErdProxyClientImpl;
import software.crldev.elrondspringbootstarterreactive.config.ErdClientConfig;
import software.crldev.elrondspringbootstarterreactive.properties.ErdClientProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
@EnableConfigurationProperties(ErdClientProperties.class)
public class ErdClientAutoConfiguration {
@Bean
public ErdClientConfig clientConfig(ErdClientProperties props) {
return new ErdClientConfig(props);
}
@Bean
@ConditionalOnBean(ErdClientConfig.class)
public ErdProxyClient proxyClient(ErdClientConfig config) {
return new ErdProxyClientImpl(config);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy