org.zodiac.autoconfigure.nacos.condition.ConditionalOnNacosRuleEnabled Maven / Gradle / Ivy
package org.zodiac.autoconfigure.nacos.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({ConditionalOnNacosRuleEnabled.OnNacosRuleEnabledCondition.class})
public @interface ConditionalOnNacosRuleEnabled {
class OnNacosRuleEnabledCondition extends AllNestedConditions {
public OnNacosRuleEnabledCondition() {
super(ConfigurationPhase.REGISTER_BEAN);
}
@ConditionalOnProperty(name = org.zodiac.nacos.base.constants.NacosSystemPropertiesConstants.NACOS_RULE_ENABLED, havingValue = "true")
static class FoundClass {
}
}
}