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 Classes Modifier and Type Class Description static classConsulBootstrapper.LoadContextstatic interfaceConsulBootstrapper.LoaderInterceptorstatic interfaceConsulBootstrapper.LoaderInvocation
-
Constructor Summary
Constructors Constructor Description ConsulBootstrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(org.springframework.boot.BootstrapRegistry registry)ConsulBootstrapperwithConsulClientFactory(Function<org.springframework.boot.BootstrapContext,com.ecwid.consul.v1.ConsulClient> consulClientFactory)ConsulBootstrapperwithLoaderInterceptor(ConsulBootstrapper.LoaderInterceptor loaderInterceptor)
-
-
-
Method Detail
-
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
-
-