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.-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()voidinitialize(org.springframework.context.ConfigurableApplicationContext applicationContext) voidpostProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
-
Constructor Details
-
SolrAutoConfigurationDisabler
public SolrAutoConfigurationDisabler()
-
-
Method Details
-
initialize
public void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext) - Specified by:
initializein interfaceorg.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
-
postProcessEnvironment
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) - Specified by:
postProcessEnvironmentin interfaceorg.springframework.boot.env.EnvironmentPostProcessor
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-