Example usage for org.springframework.boot.autoconfigure.condition SpringBootCondition subclass-usage

List of usage examples for org.springframework.boot.autoconfigure.condition SpringBootCondition subclass-usage

Introduction

In this page you can find the example usage for org.springframework.boot.autoconfigure.condition SpringBootCondition subclass-usage.

Usage

From source file zipkin.autoconfigure.collector.kafka.KafkaZooKeeperSetCondition.java

/**
 * This condition passes when {@link ZipkinKafkaCollectorProperties#getZookeeper()} is set to
 * non-empty.
 *
 * <p>This is here because the yaml defaults this property to empty like this, and spring-boot
 * doesn't have an option to treat empty properties as unset.

From source file me.j360.trace.autoconfiguration.collector.kafka.KafkaZooKeeperSetCondition.java

/**
 * This condition passes when {@link ZipkinKafkaCollectorProperties#getZookeeper()} is set to
 * non-empty.
 *
 * <p>This is here because the yaml defaults this property to empty like this, and spring-boot
 * doesn't have an option to treat empty properties as unset.

From source file io.fabric8.spring.boot.condition.OnKubernetesAvailableCondition.java

public class OnKubernetesAvailableCondition extends SpringBootCondition {

    private OnInsideKubernetesCondition inside = new OnInsideKubernetesCondition();

    @Override
    public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) {

From source file io.fabric8.spring.boot.condition.OnInsideKubernetesCondition.java

public class OnInsideKubernetesCondition extends SpringBootCondition {

    private final String HOSTNAME = "HOSTNAME";
    private final String KUBERNETES_SERVICE_HOST = "KUBERNETES_SERVICE_HOST";
    private final String KUBERNETES_SERVICE_PORT = "KUBERNETES_SERVICE_PORT";

From source file de.codecentric.boot.admin.config.SpringBootAdminClientEnabledCondition.java

/**
 * This condition checks if the client should be enabled. Two properties are checked:
 * spring.boot.admin.client.enabled and spring.boot.admin.url. The following table shows under which
 * conditions the client is active.
 *
 * <pre>

From source file org.juiser.spring.boot.config.JuiserSpringSecurityCondition.java

/**
 * @since 1.0.0
 */
public class JuiserSpringSecurityCondition extends SpringBootCondition {

    private static final Set<String> props = new LinkedHashSet<>(Arrays.asList("juiser.security.enabled"));

From source file org.springframework.boot.autoconfigure.condition.OnBeanCondition.java

/**
 * {@link Condition} that checks for the presence or absence of specific beans.
 *
 * @author Phillip Webb
 * @author Dave Syer
 * @author Jakub Kubrynski