Class SolrAutoConfigurationDisabler

java.lang.Object
org.eclipse.rdf4j.tools.serverboot.config.SolrAutoConfigurationDisabler
All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor, org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>, org.springframework.core.Ordered

public class SolrAutoConfigurationDisabler extends Object implements org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>, org.springframework.boot.env.EnvironmentPostProcessor, org.springframework.core.Ordered
Disables Spring Boot's automatic Solr client setup unless explicitly enabled through the rdf4j.solr.enabled property. This prevents accidental attempts to talk to a local Solr instance when rdf4j-sail-solr happens to be on the classpath as a transitive dependency.
  • Constructor Details

    • SolrAutoConfigurationDisabler

      public SolrAutoConfigurationDisabler()
  • Method Details

    • initialize

      public void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext)
      Specified by:
      initialize in interface org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
    • postProcessEnvironment

      public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
      Specified by:
      postProcessEnvironment in interface org.springframework.boot.env.EnvironmentPostProcessor
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered