Spring Boot conditional annotation that checks if the gRPC client channel factory is enabled. Reuse to conditionally load gRPC configurations.
// Source: https://github.com/spring-projects/spring-boot | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/*
* Copyright 2012-present the original author or authors.
*/
package org.springframework.boot.grpc.client.autoconfigure;
import java.lang.annotation.Documented;
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.ConditionalOnBooleanProperty;
import org.springframework.context.annotation.Conditional;
/**
* {@link Conditional @Conditional} that matches when
* {@code spring.grpc.client.channelfactory.enable
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key