org.zodiac.autoconfigure.sms.condition.ConditionalOnPlatformSms Maven / Gradle / Ivy
package org.zodiac.autoconfigure.sms.condition;
import org.springframework.boot.autoconfigure.condition.AllNestedConditions;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Conditional;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@Conditional({ConditionalOnPlatformSms.OnPlatformSmsCondition.class})
public @interface ConditionalOnPlatformSms {
class OnPlatformSmsCondition extends AllNestedConditions {
public OnPlatformSmsCondition() {
super(ConfigurationPhase.REGISTER_BEAN);
}
@ConditionalOnProperty(value = org.zodiac.sms.constants.PlatformSmsSystemPropertiesConstants.PLATFORM_SMS_ENABLED, havingValue = "true")
static class FoundProperty {
}
}
}