org.zodiac.autoconfigure.report.condition.ConditionalOnReportEnabled Maven / Gradle / Ivy
package org.zodiac.autoconfigure.report.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({ConditionalOnReportEnabled.OnReportCondition.class})
public @interface ConditionalOnReportEnabled {
class OnReportCondition extends AllNestedConditions {
public OnReportCondition() {
super(ConfigurationPhase.REGISTER_BEAN);
}
@ConditionalOnProperty(value = org.zodiac.report.constants.PlatformReportSystemPropertiesConstants.PLATFORM_REPORT_ENABLED, havingValue = "true")
static class FoundProperty {
public FoundProperty() {
super();
}
}
}
}