org.zodiac.autoconfigure.datasource.condition.ConditionalOnDataSourceEnabled Maven / Gradle / Ivy
package org.zodiac.autoconfigure.datasource.condition;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.zodiac.commons.constants.SystemPropertiesConstants;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@ConditionalOnProperty(name = SystemPropertiesConstants.Zodiac.SPRING_DATASOURCE_ENABLED, havingValue = "true")
public @interface ConditionalOnDataSourceEnabled {
}