Class ConsulBootstrapper
java.lang.Object
org.springframework.cloud.consul.config.ConsulBootstrapper
- All Implemented Interfaces:
org.springframework.boot.BootstrapRegistryInitializer
public class ConsulBootstrapper
extends Object
implements org.springframework.boot.BootstrapRegistryInitializer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(org.springframework.boot.BootstrapRegistry registry) withConsulClientFactory(Function<org.springframework.boot.BootstrapContext, com.ecwid.consul.v1.ConsulClient> consulClientFactory) withLoaderInterceptor(ConsulBootstrapper.LoaderInterceptor loaderInterceptor)
-
Constructor Details
-
ConsulBootstrapper
public ConsulBootstrapper()
-
-
Method Details
-
withConsulClientFactory
public ConsulBootstrapper withConsulClientFactory(Function<org.springframework.boot.BootstrapContext, com.ecwid.consul.v1.ConsulClient> consulClientFactory) -
withLoaderInterceptor
public ConsulBootstrapper withLoaderInterceptor(ConsulBootstrapper.LoaderInterceptor loaderInterceptor) -
initialize
public void initialize(org.springframework.boot.BootstrapRegistry registry) - Specified by:
initializein interfaceorg.springframework.boot.BootstrapRegistryInitializer
-