org.zodiac.autoconfigure.ureport.condition.ConditionalOnUReportEnabled Maven / Gradle / Ivy
package org.zodiac.autoconfigure.ureport.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({ConditionalOnUReportEnabled.OnUReportCondition.class})
public @interface ConditionalOnUReportEnabled {
class OnUReportCondition extends AllNestedConditions {
public OnUReportCondition() {
super(ConfigurationPhase.REGISTER_BEAN);
}
@ConditionalOnProperty(value = org.zodiac.ureport.costants.UReportSystemPropertiesConstants.UREPORT_ENABLED,
havingValue = "true", matchIfMissing = true)
static class FoundProperty {
}
}
}