org.zodiac.autoconfigure.application.condition.ConditionalOnApplicationShutdownEnabled Maven / Gradle / Ivy
package org.zodiac.autoconfigure.application.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.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.zodiac.commons.constants.SystemPropertiesConstants;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@ConditionalOnClass(value = {org.zodiac.core.application.shutdown.AppShutdown.class})
@ConditionalOnProperty(name = SystemPropertiesConstants.Zodiac.SPRING_SHUTDOWN_ENABLED, havingValue = "true", matchIfMissing = true)
public @interface ConditionalOnApplicationShutdownEnabled {
}