com.sap.cloud.spring.boot.mt.cds.ExtensionAndMtSwitchedOffCondition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-cds4j Show documentation
Show all versions of spring-boot-cds4j Show documentation
Enables cds4j for Spring Boot
The newest version!
/******************************************************************************
* © 2020 SAP SE or an SAP affiliate company. All rights reserved. *
******************************************************************************/
package com.sap.cloud.spring.boot.mt.cds;
import org.springframework.boot.autoconfigure.condition.AllNestedConditions;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
public class ExtensionAndMtSwitchedOffCondition extends AllNestedConditions {
public ExtensionAndMtSwitchedOffCondition() {
super(ConfigurationPhase.PARSE_CONFIGURATION);
}
@ConditionalOnProperty(name = Const.COM_SAP_MT_MTX_URL, matchIfMissing = true,havingValue = "MtValueThatNeverOccurs")
static class OnExtensionEnabledOff {
}
@ConditionalOnProperty(name = Const.COM_SAP_MT_ENABLED, havingValue = "false")
static class OnMtEnabledOff {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy