
io._57blocks.sms.config.SmsServiceTwilioAutoConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sms-spring-boot-starter Show documentation
Show all versions of sms-spring-boot-starter Show documentation
sms-spring-boot provide a convenient approach to integrate sms service by pre-defined
configuration. It supports templating with resource bundle.
package io._57blocks.sms.config;
import io._57blocks.sms.SmsService;
import io._57blocks.sms.SmsServiceTwilioImpl;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
@ConditionalOnBean(type = "com.twilio.http.TwilioRestClient")
@AutoConfigureAfter(name = "io._57blocks.twilio.config.TwilioAutoConfig")
public class SmsServiceTwilioAutoConfig extends AbstractSmsServiceAutoConfig {
@Override
protected SmsService createSmsService() {
return new SmsServiceTwilioImpl(smsMessageSource());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy