All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.kickstart.autoconfigure.web.OnSchemaOrSchemaProviderBean Maven / Gradle / Ivy

package graphql.kickstart.autoconfigure.web;

import graphql.kickstart.execution.config.GraphQLSchemaProvider;
import graphql.schema.GraphQLSchema;
import org.springframework.boot.autoconfigure.condition.AnyNestedCondition;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;

public class OnSchemaOrSchemaProviderBean extends AnyNestedCondition {

  public OnSchemaOrSchemaProviderBean() {
    super(ConfigurationPhase.REGISTER_BEAN);
  }

  @ConditionalOnBean(GraphQLSchema.class)
  static class OnSchema {}

  @ConditionalOnBean(GraphQLSchemaProvider.class)
  static class OnSchemaProvider {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy